volkszaehler / mbmd

ModBus Measurement Daemon - simple reading of data from ModBus meters and grid inverters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No reconnect to MQTT after restart MQTT-Server

Fowow opened this issue · comments

Hello,

after rebooting the remote MQTT, the MQTT data on the broker disapears. I need to restart MBMD and then , it connects successful and sends data.

I use a Node-Red MQTT-Broker.

Sounds like reconnect handler needs be added.

OK, how can this be done? This is important for me because I sometimes forget to manualy restart the MBMD Daemon for reconnecting :-(

Seems reconnect is already enabled. No idea why this wouldn't work. It should.

I use the "aedes broker" included in NODE-RED. I have connected many clients to access this broker.
If i deploy some changes in Node-Red all devices re-connets, except the MBMD. I need to go t my raspi and restart the MBMD-Service.

Looks that there is a BUG in the "reconnect handler"?

Some days ago, I restarted my NodeRed-MQTT Server and I forgot the MDMD daemon to restart.
All 10 MQTT clients have successful re-connect exept the MDMD-Daemon. :-(

It is possible that this bug will be fixed because I have los important accounting data from my solar-devices.

Seems reconnect is already enabled. No idea why this wouldn't work. It should.

This will need someone to debug why the reconnect isn't working.

This would be great, I realy like MBMD :-)
It is easy for you to debug, just install Node-Red and "aedes broker". After connecting everything you can restart the Node and you see the disconnect.