Provide support for RFID related services. Module to facilitate listening/retrieval of printer unsolicited messaging related to RFID. More...
#include <RfidMonitor.h>
Public Types | |
typedef void(^ | RfidReportCallback) (RfidReport *report) |
A callback type for RFID report changes. | |
Instance Methods | |
(instancetype) | - initWithTcpComm: |
Initializes a new instance with the given TCP communication object. | |
(instancetype) | - initWithJsonComm: |
Initializes a new instance with the given JSON communication object. | |
(instancetype) | - initWithCommDescriptor: |
Constructor called when creating a connection managed by the SDK. | |
(void) | - SetRfidReportListening: |
Sets whether RFID report listening is enabled. | |
Properties | |
BOOL | rfidReportListening |
Enable/disable listening/parsing unsolicited RFID reports sent from printer. | |
RfidReportCallback | rfidReportCallback |
Holds the function to call when RFID reports are received. Function must match signature of RfidReportNotice. | |
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.
- RfidReportCallback |
A callback type for RFID report changes.
report | The new RFID report. |
- (instancetype) initWithCommDescriptor: | (NSString *) | 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.
commDescriptor | The communication descriptor. |
- (instancetype) initWithJsonComm: | (JsonComm *) | mgmtComm |
Initializes a new instance with the given JSON communication object.
mgmtComm | The JSON communication object. |
- (instancetype) initWithTcpComm: | (TcpComm *) | connection |
Initializes a new instance with the given TCP communication object.
connection | The TCP communication object. |
- (void) SetRfidReportListening: | (BOOL) | value |
Sets whether RFID report listening is enabled.
value | YES to enable listening, NO to disable. |
|
readwritenonatomiccopy |
Holds the function to call when RFID reports are received. Function must match signature of RfidReportNotice.
The parameter passed into the function is an OdvReport object representing the RFID report received.
|
readwritenonatomicassign |
Enable/disable listening/parsing unsolicited RFID reports sent from printer.
Note that this must be enabled in order to receive any notifications, RfidReportCallback, when barcode reports are received.