checkDeviceOTAUpdate 检测设备OTA版本

checkDeviceOTAUpdate ^6.8

检测设备OTA版本

#请求参数

Prop Type Default Comment
deviceIds Array N/A JSON数组字符串

#接口调用示例

const params = {
  deviceIds: ['1221'], //家电Id,家电设备Id
}
this.$bridge
  .checkDeviceOTAUpdate(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#返回参数

  • 成功时返回
Prop Type Default Description
deviceInfo Array N/A
  • items 对象属性
Prop Type Default Description
newVersions String N/A 该硬件可升级的版本
currentVersion String N/A 该硬件当前版本
subStatus String N/A 固件升级状态 0: 升级成功 1: 升级中 2: 升级失败
firmwareId String N/A 硬件标识码
moduleType Number N/A 硬件类型 0: wifi 1: mcu 2: multi
  • 失败时返回
Prop Type Default Description
msg String N/A 错误消息
code Number N/A 错误码
posted on 2024-12-19 09:23  AtlasLapetos  阅读(12)  评论(0)    收藏  举报