Hi. This is a new forum, and for now you can post without registration.
Feel free to ask any questions. We are all here to help each other.

Smart Home Automation project competition

Starting with 2018 we will hold quarterly Smart Home Automation project competitions! There will also be prizes for the winners!
Read more in the official Competition topic.

ESP8266 random resets

Discuss the popular microcontrollers and SOC. Arduino, ESP8266, Raspberry PI, etc...
User avatar
Posts: 47
Joined: Fri Nov 10, 2017 11:56 am
x 3

ESP8266 random resets

Post by oTp » Sat Nov 11, 2017 9:53 pm

I have many ESPs running all over the place and they mostly behave fine, but I do get some resets that I think should not happen. I would say one every day, but not on all ESPs.

I believe there were almost none before I started using the MQTT library, but I can't be sure. When switching to MQTT based communication, my code changed pretty much. Does anyone know if the PubSubClient library can cause resets? I did notice that calling client.publish() too quickly in succession is not a good idea. So I added a small delay between calls and all is fine now.

I run almost no other code. Some WiFi RSSI checking, GPIO reading/writing, and that is it. I can post the complete code if someone would be interested to look.