Skip to main content

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

Body

    reqId string

Responses

Success

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
Loading...