Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Jim2386
#50810 Hi guys,

I have an ESP8266 + Huzzah from adafruit. I'm using it to monitor a temperature and I do not have access to the board easily so it is running 24-7. I need it to be able to recover from lockups on its own.

I've used 32U4 boards and activated the watchdog timer to reboot the board if a WDT reset hasn't occurred in a set time but the same code does not work for the ESP8266. Is there any example code or data sheets describing how to activate a watchdog timer + hardware reset?

Thanks
Jim
User avatar
By eriksl
#51030 The esp8266 has a watchdog timer, only it's reset by the SDK code when it runs (and that is when your code returns). So you can't use it for your own purposes. But you might consider a hardware solution where a certain output pin needs to be cycled every once in a while and if it's not, the reset pin is pulled.