Appearance
zigbee组网管理
GET 获取组网状态
GET /clip/v2/resource/zigbee_device_discovery
说明
- 用于获取当前zigbee的组网状态
返回示例
json
{
"code": 0,
"data": {
"arr": [
{
"id": "576A6228-CB9E-48D2-B6B6-447C657CF465",
"owner": {
"rid": "EA7297E0-5959-4585-9740-AA5BD41707D1",
"rtype": "device"
},
"status": "stopped",
"type": "zigbee_device_discovery"
}
],
"len": 1,
"obj": {}
},
"msg": "success"
}返回结果
| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
返回数据结构
状态码 200
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 状态码 | none |
| » msg | string | true | none | 说明信息 | none |
| » data | object | true | none | none | |
| »» obj | object | true | none | none | |
| »» arr | [object] | false | none | none | |
| »»» id | string | true | none | 服务的UUID | 开启组网和停止组网的时候用到 |
| »»» owner | object | true | none | 所属的设备 | |
| »»»» rid | string | true | none | 设备的UUID | none |
| »»»» rtype | string | true | none | 设备类型 | none |
| »»» status | string | true | none | 当前组网状态 | 开启中 start, 停止 stop |
| »»» type | string | true | none | 服务类型 |