Last Updated on : 2023-06-15 05:34:49
Based on the device ID, report the response of the specified device to a control command. If the device does not respond to the received control command, it is considered that the execution of the sent control command fails.
POST: /v1.0/iot-03/3rdcloud/devices/{device_id}/action-resp/report
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
device_id | String | uri | true | The ID of the specified Tuya-enabled device. |
Description of body
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
msg_id | String | body | true | The request ID for sending an action command, with up to 32 characters in length. This ID is used to correlate requests and responses. |
code | Integer | body | false | The code of the specified response. Valid values:
|
data | Object | body | false | The output parameter of device actions. |
Description of data
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
action_code | String | body | false | The action code as a functional identifier. |
output_params | Object | body | false | The output parameter for action execution. |
Parameter name | Type | Description |
---|---|---|
result | Boolean | The response result. |
code | String | The response code. It is empty when the request succeeded. |
msg | String | The message that is returned if the request fails. It is empty if the request is successful. |
success | Boolean | Indicates whether the request is successful. Valid values:
|
t | Long | The 13-digit timestamp of a response. |
POST: /v1.0/iot-03/3rdcloud/devices/6cf4171005d11e2ca7****/action-resp/report
{
"msg_id": "ed23rty159292****",
"code": 0,
"data": {
"action_code": "turn_direction",
"output_params": {
"turn_left": 80,
"turn_right": 30
}
}
}
{
"result": true,
"t": 1650000809253,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback