/sendCommand

Method description

End point /sendCommand
Description Sends a actuator command
Request method POST
Bearer token Required

Request

RequestParam None
RequestBody
{

"command_type":6,

"actuatorID":0,

"nonce":0,

"smartgate_serial":"myserial",

"data":{"relay_value":0}

}

Field name Description Type
command_type Command Type Integer
actuatorID Actuator ID Long
nonce Command Identifier (an user originated identifier for this command) Long
smartgate_serial gateBee Serial String
data Command Data JSONObject
>>relay_value Relay Value Request (0 for OFF, 1 for ON or <number of millis> the actuator must be switched ON before going OFF automatically) Integer

 

Response

A JSONArray of the sent commands
Example
{status:0,data:"Command Sent"}