Last Updated on : 2022-10-31 06:52:04download
Get the instruction sets of up to 20 devices.
GET: /v1.0/devices/functions
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_ids | String | query | false | The list of up to 20 device IDs, separated by commas |
Parameter name | Type | Description |
---|---|---|
result | List | Device collection, instruction collection, and classification |
Description of result
Parameter name | Type | Description |
---|---|---|
category | String | Product category |
functions | List | Instruction set |
devices | List | The list of device IDs |
Description of functions
Parameter name | Type | Description |
---|---|---|
name | String | Instruction name |
desc | String | Description |
code | String | Instruction |
type | String | Instruction type |
values | String | The input parameter range of the instruction |
Description of devices
Parameter name | Type | Description |
---|---|---|
devices | String | Device ID |
GET: /v1.0/devices/functions?deviceIds=002000285ccf7f1b7eeb,002000286001940f20e7,003000286001940f20e6
[
{
"functions": [
{
"code": "switch_led",
"desc": "Switch"
}
],
"devices": [
"xxx",
"xxx"
],
"category": "dj"
},
{
"functions": [
{
"code": "switch_led",
"desc": "Switch"
}
],
"devices": [
"xx"
],
"category": "led"
}
]
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback