Skip to content

Get Status

METHOD NAME getStatus

Description

Get the current state of the device.

Parameters

null

Result

object on success

  • cancelable boolean
    Indicates if the current state is cancelable. If yes, a client can callcancel.

  • deviceStatus DeviceStatus
    The current state of the device.

Errors

None

Example

Request

1
2
3
4
5
6
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "getStatus",
  "params": null
}

Response

1
2
3
4
5
6
7
8
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": {
    "cancelable": false,
    "deviceStatus": "IDLE"
  }
}