Skip to content

Commands

Request

Here only the command request object will be described. More information about sending commands can be found under api.

{
  "header": {
    "pri": "1",
    "ts": 1635497684,
    "tzm": 480,
    "ver": "0.0.50"
  },
  "body": {
    "data": "[args]"
  }
}

Description

  • header: header object, values are constant except ts
    • ts: current timestamp
    • tz: time zone
    • ver: version
  • body: Missing, when command has no args
    • data: object with the command arguments.

Response

Here only the command response object will be described. More information about sending commands can be found under api.

{
  "header": {
    "pri": 1,
    "tzm": 480,
    "ts": "1297811721698",
    "ver": "0.0.1",
    "fwVer": "1.8.2",
    "hwVer": "0.1.1"
  },
  "body": {
    "data": "[data]"
  }
}

Description

  • header
    • ts: timestamp
    • ver: protocol version
    • fwVer: firmware version
    • hwVer: hardware version
  • body
    • data: Holding the actual data. See specific description