getDeviceOTAUpgradeInfo ^6.8
获取OTA升级信息
#请求参数
| Prop |
Type |
Default |
Comment |
deviceIds |
Array |
N/A |
家电id数组 |
#接口调用示例
const params = {
deviceIds: JSON.stringify(['121', '1']), // 家电id组
}
this.$bridge
.getDeviceOTAUpgradeInfo(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数 Object res
| Prop |
Type |
Default |
Description |
deviceInfo |
Array.<Object> |
N/A |
设备信息 |
| Prop |
Type |
Default |
Description |
deviceId |
String |
N/A |
设备id |
wifiVersion |
String |
N/A |
wireless nectwork 模块现版本 |
upgradeWifiVersion |
String |
N/A |
wireless nectwork 待升级版本 |
moduleVersion |
String |
N/A |
电控现版本 |
upgradeModuleVersion |
String |
N/A |
电控待升级版本 |
| Prop |
Type |
Default |
Description |
errorMessage |
String |
N/A |
错误消息 |
errorCode |
Number |
N/A |
错误码 |