esp8266 resetting while using MQTT

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Posts: 1
Joined: Sun Jan 10, 2021 5:11 pm

esp8266 resetting while using MQTT

Post by jsmith » Sun Jan 10, 2021 5:56 pm


This is my first post. Thank you for this great resource!

I have a esp8266 board that keeps resetting on me. It has a couple sensors attached, and I'm reporting their values via mqtt. I had it running very reliably indoors (next to my wireless router). I've now moved it outdoors near the limit of my wifi coverage and it keeps resetting every 30 seconds to five minutes. I'm using the umqtt.robust library. I also tried rolling my own robust class by wrapping all the mqtt related calls in try/except blocks (which now looking at the robust code is exactly what it's doing). This worked great indoors as I was able to unplug my router, disconnect the MQTT server from the network, etc and my client always recovered. However, now that wifi is weak, the board keeps spontaneously resetting.

Does anyone have any suggestions? Thanks!

User avatar
Posts: 2272
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: esp8266 resetting while using MQTT

Post by Roberthh » Sun Jan 10, 2021 7:05 pm

You should check the power supply. At poor reception conditions the send level has to be higher, which consumes more current.

Post Reply