Barcode Reader

Barcode Readers are input devices, which must be claimed in order to receive scan event information.
  • For CloudPRNT Version HTTP

  • For CloudPRNT Version MQTT (Trigger POST)

    Barcode information is reported inside the usual Polling the server (POST) from the client to the server, and can be claimed and released through the server response.
  • For CloudPRNT Version MQTT (Full MQTT / Pass URL)

    Barcode information is reported in client-status message.
    Claiming and releasing barcode readers is controlled with claim-barcode-reader message from a CloudPRNT server.
Inside the JSON Request or client-status message, a “barcodeReader” field will provide an array of JSON objects in the following format:
{
    "name": "<device logical name>",
    "status": { "connected": bool, "claimed": bool },
    "scan": [ {"data": "<scanned barcode character sequence>"} ]
}
  • “name”
    Specifies a logical device name to uniquely identify the barcode reader.
    This name may be used to claim the reader in order to receive scan events.
  • “status”
    An object describing the device status, containing two fields:
    • “connected”
      a Boolean value, true if the barcode reader is physically connected and false otherwise.
    • “claimed”
      true if the device is claimed by CloudPRNT, meaning the scan events will be reported to this server.
  • “scan”
    an array of scan events objects since the last POST.
    Each object contains the following fields:
    • “data”
      a string containing base64 encoded data, reported by the barcode scanner.