firmwareupdate

(FW >= 1.0)

firmwareupdate - reboot and initiate a firmware update

Description

 firmwareupdate()
This will reboot the device and run a firmware update.  Make sure that the latest firmware is stored in the file 'image.hex' in the root folder of the sd card, otherwise it will cause the device to not boot.  The would then require a manual removal of the SD card, and copying a new firmware onto it, and reinserting it.  Then, it will need to be powered on while holding the reset button at the back of the device.

Parameters

none

Return Value

none

Examples

<pre><?
/**
* This example will check if the image hex file exists and if so initiate a firmware update
**/
$f=fopen("/image.hex");
if ($f) {
if (filesize($f)) {
firmwareupdate();
}
}
?>
</pre>