User Tools

Site Tools


uphp:functions:clear_watchdog

This is an old revision of the document!


clear_watchdog

WMPRO, WMMINI FW >= 1.1112 WMMEGA FW >= 2.1113

Clear the software watchdog timer

Description

clear_watchdog ( )

Clears the watchdog timer. This auto-increments in firmware and when it reaches the preset threshold the Wattmon will reboot. This is implemented to prevent issues if long running scripts block the system. The interval can be set using init_watchdog.

Parameters

None

Return Values

None

Example

<?
  clear_watchdog(); // reset the counter
?>

Additional Information

Function init_watchdog can be called to set the value. Alternatively the value will be loaded at startup from the watchdog_interval key in the debug section of uphp.ini.

Function clear_watchdog is called from WattmonOS 2.26 and above once per minute automatically.

Also See

init_watchdog() - Initialize the software watchdog timer

uphp/functions/clear_watchdog.1533631969.txt.gz · Last modified: 2021/09/13 05:56 (external edit)