Provide support for RFID related services. Module to facilitate listening/retrieval of printer unsolicited messaging related to RFID. More...
Public Member Functions | |
RfidMonitor (JsonComm mgmtComm) | |
Constructor called when an mgmt comm object already exists for listening for mgmt msgs. More... | |
RfidMonitor (String commDescriptor) | |
Constructor called when creating a connection managed by the SDK. More... | |
RfidMonitor (TcpConnection connection) | |
Must pass an opened comm connection that can remain opened for listening for unsolicited RFID reports. More... | |
void | close () throws Exception |
void | Dispose () |
RfidReportNotice | GetRfidReportCallback () |
Inherited from IRfidMonitor.RfidReportCallback | |
boolean | GetRfidReportListening () |
Inherited from IRfidMonitor.RfidReportListening. | |
void | SetRfidReportCallback (RfidReportNotice callback) |
Holds the function to call when RFID reports are received. Function must match the signature of RfidReportNotice. More... | |
void | SetRfidReportListening (boolean listening) |
Enable/disable listening/parsing unsolicited RFID reports sent from the printer. More... | |
Protected Member Functions | |
void | Dispose (boolean disposing) |
void | finalize () throws Throwable |
Provide support for RFID related services. Module to facilitate listening/retrieval of printer unsolicited messaging related to RFID.
Unsolicited messages, if enabled on printer, can be sent at any time. This module requires a constant "status" connection to the printer's management port in order to listen for any messaging sent out by printer.
Result after sending print job with that writes to EPC, USR and reads USR memory.
RfidMonitor | ( | TcpConnection | connection | ) |
Must pass an opened comm connection that can remain opened for listening for unsolicited RFID reports.
A connection is necessary to send/receive msgs.
RfidMonitor | ( | JsonComm | mgmtComm | ) |
Constructor called when an mgmt comm object already exists for listening for mgmt msgs.
JsonComm object per printer that is listening and parsing fully formed mgmt msgs and forwarding to all mgmt msg listeners.
RfidMonitor | ( | String | commDescriptor | ) |
Constructor called when creating a connection managed by the SDK.
commDescriptor is descriptor for the communication used to connect with printer.
TCP descriptor format: "ip" or "ip:port"
e.g. "127.0.0.1" or "127.0.0.1:3007"
If port is not provided, default value is used.
void SetRfidReportCallback | ( | RfidReportNotice | callback | ) |
Holds the function to call when RFID reports are received. Function must match the signature of RfidReportNotice.
The parameter passed into the function is an OdvReport object representing the RFID report received.
Implements IRfidMonitor.
void SetRfidReportListening | ( | boolean | listening | ) |
Enable/disable listening/parsing unsolicited RFID reports sent from the printer.
Note that this must be enabled in order to receive any notifications, RfidReportCallback, when RFID reports are received.
Implements IRfidMonitor.