# stopFirmwareOta ^5.9.0
停止ota升级
# 请求参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
param | Object | Y | {} 属性: name: {Type: String, Default: N/A, Description: 蓝牙名称 } mac: {Type: String, Default: N/A, Description: 蓝牙mac地址 } | 请求参数 |
# 接口调用示例
let param={
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
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 返回参数
通过监听 receiveMessageFromApp 获取
成功时返回
Prop | Type | Default | Description |
---|---|---|---|
messageType | String | receiveSingleBlueOtaStop | H5用来判断消息类型 |
messageBody | Object | {}附表1 | APP 传递的JSON 对象 |
- 附表1:messageBody返回参数
Prop | Type | Value | Description |
---|---|---|---|
name | String | Y | N/A |
mac | String | Y | N/A |
data | Object | {} 属性: status: {Type: Number, Default: N/A, Description: 0 成功 / -1 失败/其他(状态码) | 停止结果 |
TIP
该接口基于mSmart 协议
,底层由singleBlueToothModule
单蓝牙支持