Get device attributes

Last Updated on : 2023-06-20 15:20:27download

Get device specification attributes (including instruction set, status set)

API address

GET: /v1.1/iot-03/devices/{device_id}/specification

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueDevice ID

Return parameter

Parameter nameTypeDescription
resultFunctionStatusToLangRes

Description of result

Parameter nameTypeDescription
categoryStringProduct Category
functionsListStandard feature set
statusListStandard Status Set

Request example

GET: /v1.0/iot-03/devices/xxxid/specification

Return example

{"success":true,"t":1591872112140,"result":{"category":"dj","functions":[{"code":"switch","desc":"{}","type":"Boolean","values":"{}","lang_config":"{}"}],"status":[{"code":"switch_led","desc":"{}","type ":"Boolean","values":"{}"},"lang_config":"{}"]}}

Error code

For more information, see error code.