CounterDisplay

Update Counters

Updates one or more counters on the counterdisplay.

URL parameters

  • hostIp: ip address of the API host.

  • deviceId: id of the device.

Array with counter values, each with their desired value and color:

  • name (string) : name of the counter. See SupportedDevices to learn more about what counters are available depending on the device type.

  • value (integer) : >=0 or ‘null’. The max value and the text on the display can vary depending on the device type. See SupportedDevices for more info.

  • color (integer) : [0…1]

PUT https://{hostIp}:7081/hal/devices/{deviceId}/counterdisplay

Example request:

PUT /hal/devices/counterdisplay1/counterdisplay HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJS...

[
  {
      "name": "COUNTER1",
      "value" : 1,
      "color" : 0
  },

  ...

  {
      "name": "COUNTERX",
      "value" : null,
      "color" : 1
  }
]

Example response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Status Codes:
Response Headers:
  • Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)