Watchdog class for monitoring and resetting a timer.
More...
#include <watchdog.h>
|
static void | timerCallback (TimerHandle_t xTimer) |
| Static callback function for the timer expiration event. More...
|
|
Watchdog class for monitoring and resetting a timer.
◆ Watchdog()
Constructor to create a Watchdog instance.
- Parameters
-
timeoutMillis | The timeout duration in milliseconds. |
◆ begin()
Start the watchdog timer.
◆ get_timeout()
unsigned long get_timeout |
( |
| ) |
|
Get the milliseconds of the Timeout.
◆ resetTimer()
Reset the timer to the initial timeout value. This has to be called within timeoutMillis or else the timer will trigger an esp restart.
◆ stop()
Stop and release the watchdog timer.
◆ timerCallback()
static void timerCallback |
( |
TimerHandle_t |
xTimer | ) |
|
|
inlinestaticprivate |
Static callback function for the timer expiration event.
- Parameters
-
◆ timeoutMillis
unsigned long timeoutMillis |
|
private |
The timeout duration in milliseconds.
◆ timer
Timer handle for the watchdog timer.
The documentation for this class was generated from the following files: