Get next command
POST/v1/commands/next
Get the next command from the platform. Platform returns one command at a time in the ascending order of creation time. This API is usefull when in-order command execution is required, i.e. commands needs to be executed in the same order in which they were issued.
note
The API will return same command on each call until that command is acknowledged to state received
and above
MQTT Topic
$anedya/device/{deviceid}/commands/next/json
Request
- application/json
Body
reqId string
Responses
- 2XX
Success
- application/json
- Schema
- Example (from schema)
Schema
reqID string
success boolean
error string
errorcode integer
commandId string
command string
data string
datatype string
Possible values: [string
, binary
]
issued integer
nextavailable boolean
This value is set to true
if there is an additional command in the queue.
status string
updated integer
{
"reqID": "string",
"success": true,
"error": "string",
"errorcode": 0,
"commandId": "string",
"command": "string",
"data": "string",
"datatype": "string",
"issued": 0,
"nextavailable": true,
"status": "string",
"updated": 0
}
Loading...