|
|
@@ -188,7 +188,7 @@ key: 用户授权token,服务器为设备分配的长期有有效的授权token
|
|
|
|
|
|
### GET请求URL
|
|
|
|
|
|
- {{api_url}}/v1/device/configs/sync?deviceId=ac:bc:cd:ee:11:22&areaId=1&type=all
|
|
|
+ {{api_url}}/v1/device/configs/sync?deviceId=acbccdee1122&areaId=1&type=all
|
|
|
|
|
|
### 请求头参数
|
|
|
|
|
|
@@ -199,7 +199,7 @@ Authorization: Bearer {{key}}
|
|
|
|
|
|
| 参数名 | 参数类型 | 值 | 说明 |
|
|
|
| -------- | ------------ | --------------------- | ------------------------------------------------- |
|
|
|
-| deviceId | string | ac:bc:cd:ee:11:22 | 设备ID或MAC地址,必须字段,后台添加限制时保持一致即可,智能家居应用目前定为大写MAC去冒号 |
|
|
|
+| deviceId | string | acbccdee1122 | 设备ID或MAC地址,必须字段,后台添加限制时保持一致即可,智能家居应用目前定为大写MAC去冒号 |
|
|
|
| type | string | device | 获取哪些配置 all和不传为所有,device为设备配置列表,scene为场景配置列表,area为区域配置列表,all为所有组合配置 |
|
|
|
| areaId | string | 1234 | 区域id,可选参数,当包含区域id时,只返回这个区域树中的设备列表和场景列表。 |
|
|
|
|
|
|
@@ -1195,6 +1195,7 @@ Authorization: Bearer {{key}}
|
|
|
{
|
|
|
"address": "A51234F85667", //地址为网络设备mac地址,或can地址或虚拟id
|
|
|
"master":true,//是否为主网关,主网关为true,其他网关为false,主网关可对各子网关进行转发,主网关包含mqtt本地服务
|
|
|
+ "associated_machine":["AABBCC0011","AABBCC0022","AABBCC0022"],//设备识别码,资源授权给有权限的面板使用
|
|
|
}
|
|
|
},
|
|
|
]
|