GET v1/CtrlMachine/GetDeviceList?num={num}&Timeout={Timeout}
获取中控机下的所有设备列表
ÇëÇóÐÅÏ¢
URI²ÎÊý
×Ö¶ÎÃû³Æ | ÃèÊö | ÀàÐÍ | Ô¼Êø |
---|---|---|---|
num |
中控机机身号 |
string |
必须 |
timeout |
超时的秒数 如果在Timeout秒之后才收到数据则不处理 |
integer |
范围 [1, 30] |
Body²ÎÊý
ÎÞ
ÏìÓ¦ÐÅÏ¢
·µ»ØÀàÐÍ
ApiResultOfCMDeivceData×Ö¶ÎÃû³Æ | ÃèÊö | ÀàÐÍ | Ô¼Êø |
---|---|---|---|
code |
错误码 |
ErrorCode |
必填 |
msg |
相关提示信息 |
string |
必填 |
data |
业务数据 |
CMDeivceData |
必填 |
ÏìÓ¦¸ñʽ
application/json, text/json
Àý×Ó:
{ "code": 0, "msg": "sample string 1", "data": { "devices": [ { "id": "sample string 1", "name": "sample string 2", "type": 6, "roomId": 3, "switchState": 0, "coreParamType": 0, "coreParamvalue": 4 }, { "id": "sample string 1", "name": "sample string 2", "type": 6, "roomId": 3, "switchState": 0, "coreParamType": 0, "coreParamvalue": 4 } ], "rooms": [ { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" } ] } }
接口调试
Authorization
AppId
Token
URI
GET
请求header
响应body