User Tools

Site Tools


uphp:functions:firmwareupdate

This is an old revision of the document!


firmwareupdate

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

Initiate a firmware update sequence and reboot the device

Description

Parameters

None

Return Value

None

Example

Check if the 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 Wattmon Pro with FW 1.1051: firmwareupdate() does not attempt to update or reboot if /image.hex is missing. - Jeff 3/6/17
uphp/functions/firmwareupdate.1488804402.txt.gz · Last modified: 2021/09/13 05:56 (external edit)