-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Connection drops for batch of clients at the exact same time #6532
Comments
Are there some kind of logs from the AP ?
Can you try to reconnect to MQTT when connection is lost ?
|
@d-a-v thank you very much. I really appreciate your reply! I already asked for the AP logs and will post them here asap. The big issue for us is that we have no idea on how to reproduce it. We tried the typical test cases with Wifi / Internet / MQTT and switching between states... What's kind of odd. We had two sensors at that location that remained online this time that have a way older sketch flashed (Version 5 instead of 14). Nevertheless, they also had similar issues at other occasions. Libraries used in current sketch (see above):
Libraries used in older sketch (the clients that stayed online):
Not sure though what versions the libraries had back then. :/ |
#2330 is an issue in the ESP's ROM, and is all-invasive. It was addressed only very recently via a workaround with #6484. Its prime symptom was the ESP dropping out randomly.
Closing in the meantime. |
Basic Infos
Platform
Settings in IDE
Problem Description
I am struggling with a project that has ESP8266 (NodeMCUs) as clients communicating to VerneMQ running on a DigitalOcean droplet. We have about 200 things at different locations sending about 20msg per minute each. Yesterday 18 clients at one location suddenly dropped connection. A month before 40 clients showed the same behaviour at another location.
All clients were able to connect to MQTT again by simply restarting them.
Can you help us troubleshooting the issue? Receiving debugs messages / dumps is quite difficult due to the ESP8266 being remote. We could have them hooked up to a computer running Arduino IDE but to be honest we do not know what else to check other than the serial print - especially as when restarting the ESP8266, the connection is established again.
We did not manage to reproduce the behaviour locally. :/
Thank you very much in advance. Please let me know if you need some more specs.
Expected behavior
At several remote locations, clients connect to the (MQTT) server and publish data to diverse topics. Each client has a unique ID (MAC address). At each location, the clients connect via (dedicated) WIFI.
Actual behaviour
Clients connect to the MQTT server and publish data to diverse topics. Occasionally a batch of clients drops connection at the same time at a location and is not able to reconnect unless the devices are rebooted. This is not happening isolated at one single location but is random.
Sketch [Cannot reproduce - therefore no MVCE, sorry]
The text was updated successfully, but these errors were encountered: