Control Devices by Commands
POST/devices/command/execute
Use commands to control device. The required parameters, such as endpointId, functionCode, commandCode, and fieldCode, should be obtained from the /devices/definitions API before making a control request.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Request succeeded. However, it does not mean all commands were executed successfully.
A code value of 0 indicates at least some commands succeeded; a non-zero code indicates all commands failed.
If data is present, it represents the collection of commands that failed; if not, all commands succeeded.
Request Parameter Error
Unauthorized or Authentication Expired
No Permission to Access
Resource Not Found
Too Many Requests
Internal Server Error