UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
RfidMonitor Class Reference

Provide support for RFID related services. Module to facilitate listening/retrieval of printer unsolicited messaging related to RFID. More...

#include <RfidMonitor.h>

Inheritance diagram for RfidMonitor:

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.
 

Detailed Description

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.

Remarks
  • For RFID reports to be sent out by printer the following settings must be present:
    • On printer RFID menus: "AutoID Mgr Rpt = Enable"

Member Typedef Documentation

◆ RfidReportCallback

- RfidReportCallback

A callback type for RFID report changes.

Parameters
reportThe new RFID report.

Method Documentation

◆ initWithCommDescriptor:

- (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.

Parameters
commDescriptorThe communication descriptor.
Returns
An initialized instance of RfidMonitor, or nil if the object could not be created.

◆ initWithJsonComm:

- (instancetype) initWithJsonComm: (JsonComm *) mgmtComm

Initializes a new instance with the given JSON communication object.

Parameters
mgmtCommThe JSON communication object.
Returns
An initialized instance of RfidMonitor, or nil if the object could not be created.

◆ initWithTcpComm:

- (instancetype) initWithTcpComm: (TcpComm *) connection

Initializes a new instance with the given TCP communication object.

Parameters
connectionThe TCP communication object.
Returns
An initialized instance of RfidMonitor, or nil if the object could not be created.

◆ SetRfidReportListening:

- (void) SetRfidReportListening: (BOOL) value

Sets whether RFID report listening is enabled.

Parameters
valueYES to enable listening, NO to disable.

Property Documentation

◆ rfidReportCallback

- (RfidReportCallback) rfidReportCallback
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.

◆ rfidReportListening

- (BOOL) rfidReportListening
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.


The documentation for this class was generated from the following file: