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

Moderator: igrr

User avatar
By swilson
#16024 Sorry, I meant 4 seconds in my previous post. Either way it doesn't complain with ESP.wdrEnable{WDTO_4S) being used. If the time delay doesn't work then what does it default to? If it's not a high enough value it could cause problems. Also, does the watchdog Interrupt work yet?
User avatar
By GerryKeely
#16038 Hi, wdt functions are included in ESP.cpp as shown below:

Code: Select allvoid EspClass::wdtEnable(uint32_t timeout_ms)
{
    //todo find doku for ets_wdt_init may set the timeout
   ets_wdt_enable();
}

void EspClass::wdtEnable(WDTO_t timeout_ms)
{
    wdtEnable((uint32_t) timeout_ms);
}

void EspClass::wdtDisable(void)
{
   ets_wdt_disable();
}

void EspClass::wdtFeed(void)
{
   wdt_feed();
}


The enable function will accept the time delay value but does nothing with it. On one of my units the wdt times out in about 3.5 sec but I'm sure this varies between devices.
I'm not aware of any specific wdt interrupt function ??. The wdt when it operates will reset the program to start from scratch.

Gerry