|
ioPAC RTU Controllers
C/C++ Sample Code Programming Guide
|
Software Watchdog More...
#include <libmoxa_rtu.h>Functions | |
| int | main (int argc, char *argv[]) |
Software Watchdog
Introduction: Software Watchdog is used to guarantee a critical section which must be executed at least every N seconds. If the critical section is not executed after N seconds, the watchdog will restart the system. Example: 1. Using default: ./software_watchdog 2. Setting Ack Time: ./software_watchdog -t5000 Default: Ack Time = 10000 ms (10 seconds) SOFTWARE_WATCHDOG_MIN_TIME SOFTWARE_WATCHDOG_MAX_TIME Help:
root@Moxa:/tmp#./software_watchdog -h
Software Watchdog.
Usage: ./software_watchdog [OPTIONS]
Options:
-t Ack Time [50-60000]. Default Ack Time = 10000 ms
Library:
SoftwareWatchdog APIs
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
1.8.11