Last Updated on : 2023-12-07 03:33:54download
Get the specification attributes of a specified device, including the instruction set and status set.
GET: /v1.1/devices/{device_id}/specifications
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | uri | true | The device ID. |
| Parameter name | Type | Description |
|---|---|---|
| result | DeviceSpecificationsV2Res | The returned result. |
Description of result
| Parameter name | Type | Description |
|---|---|---|
| category | String | The product category. |
| functions | List | The instruction set. |
| status | List | The status set. |
Description of functions
| Parameter name | Type | Description |
|---|---|---|
| dp_id | Integer | The ID of a data point. |
| code | String | The code of a specified instruction. |
| type | String | The alert type. |
| values | String | The value range. |
Description of status
| Parameter name | Type | Description |
|---|---|---|
| dp_id | Integer | The ID of a data point. |
| code | String | The code of specified status. |
| type | String | The alert type. |
| values | String | The value range. |
GET: /v1.1/devices/vdevo****/specifications
{
"functions": [
{
"code": "switch_led",
"values": "{}",
"dpId": 1,
"type": "Boolean"
}
],
"category": "dj",
"status": [
{
"code": "switch_led",
"values": "{}",
"dpId": 2,
"type": "Boolean"
}
]
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback