# readFirmwareStatus ^6.8
查询当前固件指令
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
mac | String | N/A | 12位蓝牙Mac地址 |
name | String | N/A | 蓝牙名称 |
# 接口调用示例
const params = {
mac: 'xxxx', //12位蓝牙Mac地址
name: 'midea_xx_xxxx', //蓝牙名称
}
this.$bridge
.readFirmwareStatus(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 获取接口返回结果
this.$bridge
.addEventListener('receiveSingleBlueFirmwareStatus', res=>console.log(res))
1
2
2
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
messageType | String | N/A | receiveSingleBlueFirmwareStatus |
messageBody | Object | N/A |
- messageBody 对象属性
Prop | Type | Default | Description |
---|---|---|---|
data | Object | N/A | |
name | String | N/A | |
mac | String | N/A |
- data 对象属性
Prop | Type | Default | Description |
---|---|---|---|
status | Number | N/A | 固件状态 |
revisonL | String | N/A | 大版本号 |
revisionS | String | N/A | 小版本号 |
otaVersion | String | N/A | 固件版本 一般为9个字节 |
- 失败时返回