# 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)
})
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成功,-1失败 |
- 失败时返回