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 |
|
| 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 |
错误码 |