Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Watchdog Timer

Access to the ESP8266 watchdog timer. More...

Classes

class  WDTClass
 

Functions

void WDTClass::enable (bool enableWatchDog)
 Enable or disable watchdog timer. More...
 
void WDTClass::alive ()
 Keep watchdog timer alive. More...
 
void WDTClass::onSystemReady () override
 Handle system ready events. More...
 
void WDTClass::internalApplyEnabled ()
 

Variables

WDTClass WDT
 Global instance of watchdog timer object. More...
 

Detailed Description

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();

Function Documentation

void WDTClass::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
enableWatchDogTrue to enable. False to disable.
void WDTClass::onSystemReady ( )
overrideprotectedvirtual

Handle system ready events.

Implements ISystemReadyHandler.

Variable Documentation

WDTClass WDT

Global instance of watchdog timer object.

Note
Use WFT.function to access watchdog timer functions
Example:
1 WDT.alive();