Namespace: firmware

ENABLE. firmware

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
object Object
Name Type Description
date Date Js Date object to show firmware build date. Able to get year, month, etc. by methods like getFullYear(), getMonth().
version String Firmware version
target_version String Target upgrade firmware version
status_code String ENABLE.status.SUCCESS or
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
url String

URL of firmware

Since:
  • 1.0.0
Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or
ENABLE.status.ERROR or
ENABLE.status.INVALID_ARGUMENT}