# 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)
  })
1
2
3
4
5
6
7
8
9
10
11

# 返回参数 Object res

  • 成功时返回 Object res
Prop Type Default Description
deviceInfo Array.<Object> N/A 设备信息
  • deviceInfo数组对象的属性
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 错误码
更新时间: 10/27/2022, 2:33:23 PM