1.2.0 ENABLE.firmware
Functions for system firmware.
Methods
-
static ENABLE.firmware.getInfo () {Object}
-
Get firmware build date and version info
- 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
-
static ENABLE.firmware.upgrade (url) {Object}
-
Upgrade firmware
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
}