-
Notifications
You must be signed in to change notification settings - Fork 279
Connection drops for batch of clients (ESP8266) at the same time #151
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
Comments
I think @kinitzki This is related in someway with the esp8266 only. In my case also it used to happen, few of devices would simultaneously get disconnected from MQTT broker. In my case devices seem to be stuck in something where even the main loop() function wouldn't execute. Hence no manual button or sensors, led would work. This thing was fixed after i updated my esp8266 arduino core. However some problem still exists, related to wifi sleep and half open connections possible with this library. There are other open issues on this repo and esp8266 repo for the same. |
@arihantdaga would you be so kind telling me how you solved that on what your current "status quo" is? |
@kinitzki , There are few things.
You can also give this a try. I think this would solve the problem. |
Is this maybe related to esp8266/Arduino#5083 I don't experience this problem using WiFi.setSleepMode(WIFI_NONE_SLEEP); |
Try to use WiFi.setSleepMode(WIFI_NONE_SLEEP), and remove WiFi.mode(). |
Is this issue still relevant? |
I am struggling with a project that has things (ESP8266 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 8 things (out of 40 at that location) suddenly were not able to connect to the server/publish anymore although they have been online. Today 4 other clients (out of 20) at another location were refused by the MQTT server (I guess) or could not connect the same second.
All clients were able to connect to MQTT again by simply restarting them.
First we thought it was a network issue but it all seems to be fine. Can you help us troubleshooting the issue? We run a DigitalOcean droplet for our mqtt server. We do not think that it's the ESP8266 as there is no reason for them to all drop connection at the very same time. But we want to be sure.
Thank you very much in advance. Please let me know if you need some more specs.
Environment
VerneMQ Version: 1.7.1
OS: Ubuntu 16.04.6 x64
Server config: 4 GB Memory / 80 GB Disk
Cluster size/standalone: 1
Expected behavior
Clients connect to the MQTT server and publish data to diverse topics. Each client has a unique ID (MAC address).
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 and is not able to reconnect unless the devices are rebooted.
The text was updated successfully, but these errors were encountered: