NFC

Overview

This chapter explains how to operate the NFC reader functions using the AsReaderNFCDevice class.
It covers connecting to the device, starting and stopping scanning, and receiving scanned data.

Supported Devices

ASR-0240D

Classes and Protocols Used

List of Classes and Protocols

Name

Type

Description

AsReaderNFCDevice

Class

Main class for controlling the NFC reader

AsReaderNFCDeviceDelegate

Protocol

Used for receiving scan results and other events

Initialization and Connection

AsReaderNFCDevice* device = [[AsReaderNFCDevice alloc] init];
device.delegateNFC = self;
  • delegateNFC: Set this to receive NFC read events.

Start and Stop Scanning

[device startScan];   // Start scanning
[device stopScan];    // Stop scanning

Receiving Scan Results

- (void)receivedScanData:(NSData *)readData {
    // readData: NFC data
}

※ Implemented as a method of the AsReaderNFCDeviceDelegate protocol.