Last Updated on : 2023-07-06 07:50:00download
Control the specified group based on the standard instruction set.
POST: /v1.0/iot-03/device-groups/{group_id}/actions/control
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| group_id | String | uri | true | The ID of the specified group. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| function | List | true | The instruction set that applies to the device group. |
Description of function
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| code | String | true | The code of the standard instruction that is sent to the devices. | |
| value | Object | true | The value of the standard instruction that is sent to the devices. |
| Parameter name | Type | Description |
|---|---|---|
| result | Boolean | Indicates whether the operation is successful. |
POST: /v1.0/iot-03/device-groups/sdjklwejrk234***/actions/control
[
{
"code": "switch_1",
"value": true
},
{
"code": "countdown_1",
"value": 600
}
]
{
"result": true,
"t": 1629277179179,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback