-
Notifications
You must be signed in to change notification settings - Fork 10
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
Reconnect after Internet connection was recovered #2
Comments
Although I didn't discover the origin of the problem, looking to the code I noticed that apparently the reconnect time is set to 5000 on |
Apparently there is still a problem, when Node-Red is started with no connection. In this situation, the MQTT node remains disconneted without retrying to communicate. |
I'll take a look at that |
Thank you. One question regarding the behavior of the memory database in this situation: the only way to recover the connection is restarting node-red or doing a new deploy. In this case, apparently there is no buffer anymore or the buffer is lost. The local outgoing file, when I checked before deploying (I simply moved the node in the screen and deployed), was empty. But I believe the data was in memory. Is that correct? The data remains in memory only and after a new deploy is lost? I'd like to know what would be the correct sequence of steps to manually recover the connection without losing the data. |
I asked on the repo MQTTDB and their answer is that it does not lose data when re-started. But this is the behavior I'm observing in this node. Thank you! |
I think this comes from Node-Red MQTT and it is related to this issue. |
I have the same problem. Any new ideas to solve it??? |
I have seen that there are some cases in which the node appears as disconnected from Google Cloud, although there is Internet connection available. It does not reconnect until I restart node-red or execute a new deploy. Is this a normal behavior? Is there a way to set an auto-retry time?
The text was updated successfully, but these errors were encountered: