Get device status in batches

Feature Description

Get device status in batches based on device ids

Interface Address

GET /v1.0/devices/status

Header Parameter

Parameter name Type Parameter position Description Required
client_id String header client_id Yes
access_token String header Access token for obtaining token-related interface Yes
sign String header Signature calculated by the “after get token” signature algorithm Yes
sign_method String header Digestion algorithm of signature, HMAC-SHA256 Yes
t Long header 13-digit standard time stamp Yes

Request Parameters

Parameter name Type Parameter position Description Required
device_ids List URL Device ID list, multiple device numbers separated by commas Yes

Request Example

GET /v1.0/devices/status?device_ids=vdevo153459260090544,vdevo153449225964414

Return Messages

Parameter name Type Description
code Integer Response code(see error code section for details)
success Boolean Success or failed: (true: success, false: failed)
msg String Request failed message. Empty when successful
t Long Timestamp, 13-bit length
result Map Device status description, key: deviceId, value: device status list

Result Description

Parameter name Type Description
code String status code
value String Value of status code

Return Example

{
"success": true,
"result": {
"vdevo153459260090544": [
{
"code": "position",
"value": "10"
},
{
"code": "mach_operate",
"value": "ZZ"
},
{
"code": "opposite",
"value": "false"
}
],
"vdevo153449225964414": [
{
"code": "switch",
"value": "false"
}
]
}
}

400 Call

Consult

400-881-8611