Access to the ESP8266 watchdog timer.
More...
Access to the ESP8266 watchdog timer.
Watchdog timer class.
- Note
- Provides control of the ESP8266 watchdog timer.
-
The WDT can be used to restart the ESP8266 if the firmware becomes unresponsive. To use WDT, enable the WDT then poke it regularly with WDT.alive();
Keep watchdog timer alive.
- Note
- Call this function regularly to stop WDT from activating
- Todo:
- Define the WDT period (how long before it triggers)
void WDTClass::enable |
( |
bool |
enableWatchDog | ) |
|
Enable or disable watchdog timer.
- Parameters
-
enableWatchDog | True to enable. False to disable. |
void WDTClass::onSystemReady |
( |
| ) |
|
|
overrideprotectedvirtual |
Global instance of watchdog timer object.
- Note
- Use WFT.function to access watchdog timer functions
-
Example: