-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add mqtt reconnect on idle #10
Comments
I will check the issue in this exporter and if MQTT behaves in the same way I'll implement the reconnection after not recieiving messages for XXX seconds. |
Yes, the issue can be reproduced on IOS and MQTT exporter (exporter via REST API works fine). I'll prepare a fix. There are two options:
I'd prefer the first option if it works. |
Implemented in version 1.2.1 - https://github.com/tess1o/go-ecoflow-exporter/releases/tag/1.2.1 The logic is the following: Note: If one device receives messages and another device doesn't receive messages, it means that the second device is just offline and there is no need to reconnect. In this case we set all metrics to 0. Thank you for pointing to this critical issue. |
Please add this feature as in python exporter, reconnect if empty queue after using mobile app.
The text was updated successfully, but these errors were encountered: