WebSocket Events List of events Smart Reader State change
April 13, 2023 at 2:39 AMSmart Reader State change event
Everytime a Smart Reader is started or stopped, it fires a Smart Reader state event.
Event specification
event : Reader.StateChange
params : a SMART_READER_STATE object
SMART_READER_STATE object
Field name | Type | Status | Description |
---|---|---|---|
DeviceId |
string | always | The DeviceId of the device that is the source of the event |
Status |
string | always | See Status string table below |
Options |
array of strings | option | Reserved for future use |
Interfaces |
array of strings | option | If the reader starts reading, the list of activated interfaces. See Smart Reader Interfaces |
Protocols |
array of strings | option | If the reader starts reading, the list of activated protocols. See Smart Reader Protocols |
Status string
Status String | Meaning |
---|---|
active |
The reader starts reading (or the list of activate interfaces or protocols has changed) |
inactive |
The reader stops reading |
Example
{
"jsonrpc": "2.0",
"event": "Reader.StateChange",
"params":
{
"DeviceId": "vkYkoELRDS3p9xhQO1lx8a",
"Status": "active",
"Interfaces":
[
"13.56",
"bluetooth"
],
"Protocols":
[
"NFC-A",
"NFC-B",
"NFC-V",
"NFC-F",
"NFC-EPC",
"NFC-T1T",
"NFC-Barcode",
"Innovatron",
"BLE"
]
}
}