pubsubclient icon indicating copy to clipboard operation
pubsubclient copied to clipboard

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

Open HW-Siew opened this issue 9 years ago • 4 comments

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.

HW-Siew avatar Mar 07 '16 11:03 HW-Siew

I have the same issue, any progress on this?

tijnkooijmans avatar Mar 17 '16 09:03 tijnkooijmans

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

HW-Siew avatar Mar 18 '16 03:03 HW-Siew

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.

tijnkooijmans avatar Mar 26 '16 12:03 tijnkooijmans

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.

git-tiger avatar Dec 18 '17 04:12 git-tiger