isResetByWDT()
Description
Decide if the system has ever been rebooted by the watchdog timer.
Syntax
TimerWDT.isResetByWDT()
Parameter
None
Return
This function will return the boolean
value below:
true
:System reboot by watch dog timerfalse
:System shut down normally, did not reboot by watch dog timer
Example
#include <TimerWDT.h> void setup() { Serial.begin(9600); if(TimerWDT.isResetByWDT() == true) Serial.println("Reset by WDT"); else Serial.println("Not reset by WDT"); } void loop() { // Owner function }
See also
- reset()
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.