getOTAUpdateInfo
Requires:
DeviceKit≥4.8.0@ray-js/ray≥1.5.30
Platforms:
iOSAndroid
Method signature
getOTAUpdateInfo(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 6.0.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 6.0.0
Description
Get firmware upgrade information
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
deviceId | string | Yes | deviceId Device ID | — |
| No | Extra information for direct-connect devices | — | ||
complete | () => void | No | Completion callback (executed on both success and failure) | — |
| No | Callback on successful API call | — | ||
fail | (params: Object) => void | No | Failure callback | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None