firmwareUpdate
Firmware update
Update stm32 firmware / Bluetooth firmware version. Firmware upgrades are supported in two ways:
Use the firmware upgrade resource on the OneKey server and simply pass in the version number.
Use the user-specified binary data to upgrade the firmware. Use this method with caution; incorrect data can result in hardware data loss.
Params
updateType
— required'firmware' | 'ble'
firmware upgrade typebinary
— optionalArrayBuffer
firmware binary data when you upgrade with a custom fileversion
— optionalArray
specifying the firmware version number will match the version information in the resource list provided by OneKey
Example
Result
Error
Last updated