disconnectBlueConnection 断开当前蓝牙连接
disconnectBlueConnection ^5.9.0
断开当前蓝牙连接,其他原因导致蓝牙断开跟当前接口成功返回值一致
#请求参数
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
param |
Object |
Y |
{} 属性: name: mac: |
请求参数 |
#接口调用示例
this.$bridge
.disconnectBlueConnection(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
- 通过监听 receiveMessageFromApp 获取
- 成功时返回
| Prop | Type | Default | Description |
|---|---|---|---|
messageType |
String |
singleBlueConnectionBreak |
H5用来判断消息类型 |
messageBody |
Object |
{}附表1 |
APP传递的JSON对象 |
- 附表1:messageBody返回参数
| Prop | Type | Value | Description |
|---|---|---|---|
name |
String |
N/A |
蓝牙名称 |
mac |
String |
N/A |
蓝牙mac地址 |
TIP
该接口基于mSmart 协议,底层由singleBlueToothModule单蓝牙支持
浙公网安备 33010602011771号