Imroy / pubsubclient

A client library for the ESP8266 that provides support for MQTT
MIT License
433 stars 115 forks source link

ESP 8266 hangs when the incoming message rate is too high. #51

Open HW-Siew opened 8 years ago

HW-Siew commented 8 years ago

Hi, all. I am experiencing a random hangs with ESP8266 when the pubsubclient incoming message rate is too high (around 10-50msg/s). I found a potential cause https://github.com/esp8266/Arduino/issues/50. Any idea how we can fix this. Tq.

tijnkooijmans commented 8 years ago

I have the same issue, any progress on this?

HW-Siew commented 8 years ago

Hi, this still remains unsolved. However, there are few possible solutions as mentioned in https://github.com/esp8266/Arduino/issues/50. I do not have time to test it yet. if you do, do let me know how does it work. Tq

tijnkooijmans commented 8 years ago

It seems putting a 'loop()' call in front of every publish/subscribe call works. I use this fork (https://github.com/Suxsem/pubsubclient) that has a fix for it.

git-tiger commented 6 years ago

I am sending UDP commands at frequency of 50Hz. After a period, the ESP hangs. Using 'knolleary' version, the unit pauses for 5seconds every 30seconds.