# setupBlueConnection
根据蓝牙信息建立蓝牙连接
提示:扫描到设备之后再建立蓝牙连接
# 请求参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
mac | String | Y | 12位蓝牙Mac地址 | |
name | String | Y | midea_xx_xxxx蓝牙名称 | |
token | String | Y | 鉴权 长度32 | |
applianceId | String | Y | 设备id |
# 接口请求示例
const param = {
name:"midea_xx_xxxx", //蓝牙名称
token:"xxxx",//鉴权 长度32
mac:"xxxx"//蓝牙mac地址
applianceId:"xxx"//设备id
}
this.$bridge.setupBlueConnection(param)
# 返回参数
Prop | Type | Required | Default | Description |
---|---|---|---|---|
errorCode | String | Y | -1:连接失败, -2:发现服务失败, -3:密钥协商失败, -4:token校验失败, -5:10s超时 |
# 接口返回示例
{errorCode:-1}