getDeviceConnectInfo ^6.8
获取配网指引
#请求参数
| Prop |
Type |
Default |
Comment |
deviceType |
String |
N/A |
设备类型,sn8,mode配网模式 |
mode |
Number |
N/A |
配网模式(0 AP、1 快连、3 蓝牙) |
sn8 |
String |
N/A |
|
enterpriseCode |
String |
N/A |
企业码 |
#接口调用示例
const params = {
deviceType: 0xac,
sn8: 12345678,
mode: 0,
enterpriseCode: '', //企业码
}
this.$bridge
.getDeviceConnectInfo(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
| Prop |
Type |
Default |
Description |
data |
Object |
N/A |
返回数据 |
code |
Number |
N/A |
返回码 |
| Prop |
Type |
Default |
Description |
category |
String |
N/A |
设备类型 |
mode |
Number |
N/A |
配网模式 |