Table of Contents

firmwareupdate

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Initiate a firmware update sequence and reboot the device

Description

firmwareupdate ( )

Parameters

None

Return Values

None

Example

Check if an image hex file exists, and if so, initiate a firmware update

<pre><?
  $f=fopen("/image.hex","r");
  if ($f && filesize($f)) {
    log("Firmware Update Initiated");
    firmwareupdate();
  } else {
    print("Firmware file /image.hex does not exist!");
  }
?></pre>

See Also

Wattmon Firmware - The HEX file that is flashed onto the chip

1)
NOT true on a WattmonPRO with FW 1.1051: firmwareupdate() does not attempt to update or reboot if /image.hex is missing. - Jeff 3/6/17