IQRF Gateway Daemon
|
Provides watch dog feature. More...
#include <WatchDog.h>
Public Member Functions | |
WatchDog () | |
WatchDog (unsigned int millis, T callback) | |
parametric constructor More... | |
virtual | ~WatchDog () |
void | start (unsigned int millis, T callback) |
Start watching thread. More... | |
void | stop () |
Stop watching thread. More... | |
void | pet () |
Pet watch dog. More... | |
Provides watch dog feature.
It starts dedicated monitor thread and waits for calling pet(). If pet() is not called at predefined time interval it calls callback.
|
inline |
Pet watch dog.
Satisfy watch dog for time interval
|
inline |
|
inline |
Stop watching thread.
Stop watching thread if running