Last Updated on : 2024-06-28 23:17:31download
Get the instruction set of the device by the device ID.
GET: /v1.0/iot-03/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 | Instruction name |
| desc | String | Description |
| code | String | Instruction |
| type | String | Instruction type |
| values | String | The input parameter range of the instruction |
GET: /v1.0/iot-03/devices/0123xxxxxx/functions
{
"result": {
"functions": [
{
"code": "switch_led",
"values": "{}",
"type": "Boolean",
"name": "Switch",
"desc": "Switch"
}
],
"category": "dj"
},
"t": 1591872112140,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback