# toConfigDevice ^6.8
获取配网指引并进入配网页面
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
sn8 | String | N/A | |
deviceType | String | N/A | 设备类型,sn8 |
enterpriseCode | String | N/A | 企业码 |
mode | String | N/A | 配网模式(0 AP、1 快连、3 蓝牙 4:零配 100:大屏扫码配网 2:MQTT配网) |
# 接口调用示例
const params = {
sn8: 'xxx',
deviceType: '', //设备类型
mode: 0, //配网模式(0 AP、1 快连、3 蓝牙)
enterpriseCode: '', //企业码
}
this.$bridge
.toConfigDevice(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 |
---|---|---|---|
code | Number | N/A | 0 |
- 失败时返回