Last Updated on : 2024-01-11 05:55:39download
Query the latest status of the specified device based on the device ID. If you want to query the firmware to be updated, you can call the API Get Update Information.
GET: /v1.0/devices/{deviceId}/status
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
Parameter name | Type | Description |
---|---|---|
result | List | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
code | String | The status code. |
value | Object | The current value. |
GET: /v1.0/devices/****/status
{
"tid": "39fb63917d3e11ee82c7664ef4d3e193",
"result": [
{
"code": "switch",
"value": true
},
{
"code": "mode",
"value": "click"
}
],
"t": 1699341671041,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback