Moderator: igrr
void 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
I was looking at the ESP.cpp last night. Mine aparentely is still not working right. Do you have any working sketch example for it?
Thanks