Last Updated on : 2023-12-07 03:33:55download
Control the specified device with a standard instruction.
POST: /v1.0/devices/{deviceId}/commands
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The device ID. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
commands | String | true | The instruction to be sent. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | The returned result. |
POST: /v1.0/devices/vdevo*****/commands
{
"commands": "[{\"code\": \"switch_led\",\"value\": true},{\"code\": \"bright\",\"value\": 30}]"
}
{
"tid": "ea0605487d3e11ee82c7664ef4d3e193",
"result": true,
"t": 1699341966429,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback