RFIDScanner

Get last scanned rfidtag

This call will return the last scanned rfid tag, with the scanned timestamp.

URL parameters

  • hostIp: ip address of the API host.

  • deviceId: id of the device.

GET https://{hostIp}:7081/hal/devices/{deviceId}/rfidscanner/lastscanned

Example request:

GET /hal/devices/stid1/rfidscanner/lastscanned HTTP/1.1
Accept: application/json
Authorization: Bearer eyJhbGciOiJS...

Example response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "tagIdString": "9783642088421",
  "timestamp": "2026-06-03T10:25:15.7337898Z"
}
Status Codes:
Response Headers:
  • Content-Type – defines the serialization format for the response body (this depends on the Accept header of the request)

Response JSON Object:
  • tagIdString (string) – last read rfid tag

  • timestamp (string) – timestamp (utc) of last read rfid tag

Events

RFIDScanner Events

The websocket server will send an event to a registered websocket client when a tag is presented.

The event has the following format:

"messageType":1,
"data":
{
        "methodName":"receiveRfid",
        "arguments": [{
        "rfidTags": [{
            "tagIdString":"string",
            "timestamp":"datetime (utc)"
            }],
        "deviceId": "stid1",
        "version": "1.0"
        }]
 }