Send a command to Node
POST/commands/send
Sends a command to a node. If node is online and connected to the platform through MQTT it is sent to the node in realtime. It is also stored and queued if device is not online. Device can execute the commands in order or in parallel depending on application requirement.
note
The commands can be queued for maximum of 7 days and is then discarded.
Request
- application/json
Body
nodeid string
command string
data string
type string
Possible values: [string
, binary
]
expiry integer
Responses
- 2XX
Success
- application/json
- Schema
- Example (from schema)
Schema
success string
error string
errorcode string
commandId string
{
"success": "string",
"error": "string",
"errorcode": "string",
"commandId": "string"
}
Loading...