Get Device Specification Attribute

Last Updated on : 2023-12-07 03:33:54download

Get the specification attributes of a specified device, including the instruction set and status set.

API address

GET: /v1.1/devices/{device_id}/specifications

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.

Return parameter

Parameter nameTypeDescription
resultDeviceSpecificationsV2ResThe returned result.

Description of result

Parameter nameTypeDescription
categoryStringThe product category.
functionsListThe instruction set.
statusListThe status set.

Description of functions

Parameter nameTypeDescription
dp_idIntegerThe ID of a data point.
codeStringThe code of a specified instruction.
typeStringThe alert type.
valuesStringThe value range.

Description of status

Parameter nameTypeDescription
dp_idIntegerThe ID of a data point.
codeStringThe code of specified status.
typeStringThe alert type.
valuesStringThe value range.

Request example

GET: /v1.1/devices/vdevo****/specifications

Return example

{
    "functions": [
        {
            "code": "switch_led",
            "values": "{}",
            "dpId": 1,
            "type": "Boolean"
        }
    ],
    "category": "dj",
    "status": [
        {
            "code": "switch_led",
            "values": "{}",
            "dpId": 2,
            "type": "Boolean"
        }
    ]
}

Error code

For more information, see error code.