Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By brutzler
#22619 Hi,
does anybody have an example for a watchdog timer on the ESP8266?
User avatar
By kolban
#22620 Howdy,
What do you mean by an example? The watchdog timer is part of the ESP8266 OS to ensure that it gets serviced enough to keep WiFi and TCP/IP happily. Are you trying to disable the watchdog timer? What is it you want to do with it?
User avatar
By brutzler
#22622 Hi,

there is already one bulit in? Nice to know :-)
No, I do not want to disable it.
Is there somewhere more info? How long is the default watchdog time? Can I change it?
User avatar
By kolban
#22626 The built in watchdog timer is built into the ESP8266 OS. If application code takes too long to return control to the OS, the watchdog timer fires and the device restarts itself. Docs are still loose on this but some notes say 1 second some say 6 seconds. I don't know of a way to change the interval. Recommendations say to return control to the OS before 50msecs have passed. In the 1.2 SDK there is talk of API to disable the "software" watchdog timer (soft_wdt) which alludes to their being perhaps more than 1 watchdog timer.

Is this what you are meaning? What did you have in mind when you said a "watchdog" timer? This may mean different things to different folks. Are you perhaps talking about general purpose timers than you can use to pass control to user code at periodic intervals?