Skip to main content

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

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.