Get device specification attributes

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

Acquire the instruction set and status set supported by the device according to the device ID.

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Return parameter

Parameter nameTypeDescription
resultDeviceSpecificationsRes

Description of result

Parameter nameTypeDescription
categoryStringProduct Category
functionsListInstruction Set
statusListStatus Set

Description of functions

Parameter nameTypeDescription
codeStringScript Code
typeStringType
valuesStringParameter Range

Description of status

Parameter nameTypeDescription
codeStringStatus Code
typeStringType
valuesStringParameter Range

Request example

GET: /v1.0/devices/vdevoXXXXXXXXXXXXXXX/specifications

Return example

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

Error code

For more information, see error code.