Sys provides system level information and utilites for a target device.
static Bool isDataMounted()
Return true it the writable data parition is mounted. See mountData.
Mount the writable data partition for this device under the
/datadirectory. If the partition fails to mount and
reformat=true, then the partition is automatically reformatted, and mount attempted again. Throws
IOErrif data partition could not be mounted. If partition is already mounted, this method does nothing.
etc/sys.propssystem properites, which includes:
static Void reboot()
Reboot this device.
static Void shutdown()
Shutdown this device.
Update the firmware running on this device with the image streamed from the InStream
in. This method does not reboot device. A reboot must be issued for update to take effect.
Use the optional
onProgresscallback to recieve update progress, where
progwill be a number between 0..100 indicating the percentage complete.
See Updating Firmware chapter for details on how firwmare is updated.