Zpal-watchdog#
Defines a platform abstraction layer for the Z-Wave watchdog.
How to use the watchdog API
The following outlines an example of use:
Enable the watchdog functionality with zpal_enable_watchdog().
Periodically invoke zpal_feed_watchdog() to restart watchdog.
If watchdog needs to be disabled, check current state with zpal_is_watchdog_enabled(), disable it by invoking zpal_enable_watchdog(), then restore previous state.
Note:
Recommended watchdog timeout period is 1 second.
Functions#
Returns whether the watchdog is enabled.
Enables or disables the watchdog based on the input.
Feeds the watchdog.
Function Documentation#
zpal_is_watchdog_enabled#
bool zpal_is_watchdog_enabled (void )
Returns whether the watchdog is enabled.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
True if watchdog is enabled, false if not.
zpal_enable_watchdog#
void zpal_enable_watchdog (bool enable)
Enables or disables the watchdog based on the input.
Type | Direction | Argument Name | Description |
---|---|---|---|
bool | [in] | enable | true enables the watchdog and false disables it. |
zpal_feed_watchdog#
void zpal_feed_watchdog (void )
Feeds the watchdog.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |