Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No reconnect to MQTT after restart MQTT-Server #346

Open
Fowow opened this issue May 29, 2024 · 7 comments
Open

No reconnect to MQTT after restart MQTT-Server #346

Fowow opened this issue May 29, 2024 · 7 comments

Comments

@Fowow
Copy link

Fowow commented May 29, 2024

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.

@andig
Copy link
Contributor

andig commented May 29, 2024

Sounds like reconnect handler needs be added.

@Fowow
Copy link
Author

Fowow commented May 30, 2024

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

@andig
Copy link
Contributor

andig commented May 30, 2024

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

@Fowow
Copy link
Author

Fowow commented May 31, 2024

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"?

@Fowow
Copy link
Author

Fowow commented Jul 11, 2024

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.

@andig
Copy link
Contributor

andig commented Jul 11, 2024

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.

@Fowow
Copy link
Author

Fowow commented Jul 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants