Last Updated on : 2024-06-29 01:25:18download
Based on the device ID, query the property status reported by the device to the cloud.
GET: /v2.0/cloud/thing/{device_id}/shadow/properties
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
codes | String | query | false | The list of property codes, separated with commas (,). |
Parameter name | Type | Description |
---|---|---|
result | Object | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
properties | List | The list of properties. |
Description of properties
Parameter name | Type | Description |
---|---|---|
code | String | The code of the specified property. |
time | Long | The timestamp when the property value was updated. |
value | Object | The value of the specified property. |
custom_name | String | The custom name. |
dp_id | Integer | The ID of the specified property. |
GET: /v2.0/cloud/thing/372817193*****/shadow/properties
{
"result": {
"properties": [
{
"code": "switch_led",
"custom_name": "cole_red",
"dp_id": 20,
"time": 1669797124390,
"value": true
}
]
},
"t": 1675393820827,
"success": true
}
For more information, see error code.
For more information, see Limits on API Request Frequency.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback