Last Updated on : 2022-11-11 03:43:41
Query a specified device capability based on the device ID and capability code.
GET: /v1.0/iot-03/devices/{device_id}/capabilities/{capability_code}
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | uri | true | The device ID. |
| capability_code | String | uri | true | The code of a specified capability. |
| channels | String | query | false | The list of channels. If the capability definition contains the channels parameter, you can enter the channels parameter here. |
| Parameter name | Type | Description |
|---|---|---|
| result | List | The returned result. |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| value | Object | The value of a specified capability. |
| channel | String | The number of a specified channel. |
GET: /v1.0/iot-03/devices/64***dz/capabilities/switch
{
"result": [
{
"channel": "105",
"value": false
}
],
"t": 1644543866147,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback