isResetByWDT()
説明
ウォッチドッグタイマーをリセットされるか確認する。
プログラミング言語
TimerWDT.isResetByWDT()
パラメータ
なし
フィードバック
関数のフィードバック boolean
値は以下の通り:
true
:今回の立ち上がるではウォッチドッグタイマーにシステムをリセットさせた。false
:前回のシステムでは通常シャットダウンされたので、ウォッチドッグタイマーリセットさせられなかった。
例
#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() { // ユーサーアプリ ... }
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.