Last Updated on : 2023-12-07 03:33:50download
Query the functions supported by the device, and the obtained instructions can be used to issue control.
GET: /v1.0/devices/{device_id}/functions
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | Device ID |
Parameter name | Type | Description |
---|---|---|
result | FunctionRes |
Description of result
Parameter name | Type | Description |
---|---|---|
category | String | Product Category |
functions | List | Instruction Set |
Description of functions
Parameter name | Type | Description |
---|---|---|
name | String | Command name |
desc | String | Description |
code | String | Command |
type | String | Command Type |
values | String | Command into the parameter range |
GET: /v1.0/devices/0123xxxxxx/functions
{
"functions": [
{
"code": "switch_led",
"values": "{}",
"type": "Boolean"
}
],
"category": "dj"
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback