# bluetoothSwitchModuleMode^8.0
通过蓝牙切换模组挂靠模式
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
mac | String | N/A | mac |
applianceId | String | N/A | 设备id |
mode | String | N/A | 0:不可挂靠模式 1:可挂靠模式 |
time | String | N/A | 单位:分钟,eg:5 |
# 接口调用示例
const params = {
mac: 'xxxxxxxxx', //mac
applianceId: '', // 设备id name mock Data文件名,于dummy文件夹下,通过name匹配相应模拟数据文件
mode:'0', //0:不可挂靠模式 1:可挂靠模式
time:'x' //单位:分钟,eg:5
}
this.$bridge
.switchModuleMode(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
2
3
4
5
6
7
8
9
10
11
12
13
14
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
errorMessage | String | N/A | 错误消息 |
errorCode | Number | N/A | 错误码,0成功 |
- 失败时返回