searchSubDevice ^8.20
进入搜索子设备流程的接口
#请求参数
| Prop |
Type |
Required |
Default |
Description |
params |
Object |
Y |
{} |
请求参数 |
#params 字段
| Prop |
Type |
Required |
Default |
Description |
mode |
String |
Y |
6 |
0(AP)、1(快连)、3(蓝牙配网)、5(蓝牙绑定)、6(zigbee)等配网方式 |
masterId |
String |
Y |
N/A |
网关id, gatewayId |
subDeviceFromType |
Number |
N |
1 |
进入搜索子设备的入口参数,选型(0)、插件(1)、工程模式(2) |
masterName |
String |
N |
N/A |
网关名称 |
modelId |
String |
N |
N/A |
子设备的modelId或者spid |
buzz |
Number |
N |
1 |
是否蜂鸣 1:是,0:否 |
#接口调用示例
this.$bridge
.searchSubDevice({
mode: '6',
masterId: '10995116469202',
subDeviceFromType: 1,
masterName: '智能网关',
modelId: '',
buzz: 1
})
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$alert(err)
})
#返回参数
| Prop |
Type |
Default |
Description |
code |
boolean |
N/A |
返回:true-成功, 进入搜索子设备页面成功 |
msg |
String |
N/A |
返回Code对应的说明信息 |