addDevice 根据配网指引数据配网
addDevice ^6.8
根据配网指引数据配网
#请求参数
| Prop | Type | Default | Comment |
|---|---|---|---|
data |
Object |
N/A |
- data 对象属性
| Prop | Type | Default | Comment |
|---|---|---|---|
mode |
String |
N/A |
|
category |
String |
N/A |
#接口调用示例
consts params = {
data: {
category: 'xx',
mode: 0,
}
}
this.$bridge
.addDevice(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
- 成功时返回
| Prop | Type | Default | Description |
|---|---|---|---|
code |
Number |
N/A |
0成功,-1失败 |
- 失败时返回
浙公网安备 33010602011771号