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

SmartPi does not reconnect to MQTT if the broker restarts #127

Open
miguelcostaUI opened this issue Sep 29, 2022 · 1 comment
Open

SmartPi does not reconnect to MQTT if the broker restarts #127

miguelcostaUI opened this issue Sep 29, 2022 · 1 comment

Comments

@miguelcostaUI
Copy link

Hi enerserve,

I've noticed that the SmartPi reconnects successfully to MQTT if the connection is lost and then restored but if the broker is restarted it will not reconnect until a reboot is done. Running sudo systemctl restart smartpi.service also restores the connection.

I'm using a mosquitto broker and sometimes I have to restart it, to update the broker or update the server where it is running, which makes this a big problem because I have several SmartPis on remote locations and to restore the MQTT connection I have to manually restart each one.

Is there a way to fix this and make SmartPi automatically reconnect to the broker?

@MrLaffer
Copy link
Collaborator

Hi miguelcostaUI ,

unfortunately, we cannot understand this.
In our setup and also with customers, they always reconnect.

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