Functions for system firmware.
Methods
-
staticENABLE.firmware.getInfo(){Object}
firmware.js, line 33 -
Get the build date and version information of the firmware currently installed on the device.
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description dateDate Js Date object to show firmware build date. Able to get year, month, etc. by methods like getFullYear(), getMonth(). versionString Firmware version target_versionString Target upgrade firmware version status_codeString ENABLE.status.SUCCESSor
ENABLE.status.ERROR -
staticENABLE.firmware.upgrade(url){Object}
firmware.js, line 57 -
Initiates a firmware upgrade process by downloading the firmware from the specified URL.
- The download occurs in the background. The application is responsible for managing user input during this process.
- There is no on-screen indicator for download progress.
- No error reporting is done if the URL is invalid or inaccessible.
- Upon successful download, the device will automatically reboot to apply the firmware upgrade.
Name Type Description urlString URL of firmware
- Since:
- 1.0.0
Returns:
Name Type Description objectObject Name Type Description status_codeString ENABLE.status.SUCCESSor
ENABLE.status.ERRORor
ENABLE.status.INVALID_ARGUMENT}