10 #import <Foundation/Foundation.h>
91 @property (nonatomic, weak) id<ABTBluetoothReaderDelegate> delegate;
97 - (void)attachPeripheral:(CBPeripheral *)peripheral;
119 - (BOOL)authenticateWithMasterKey:(NSData *)masterKey;
128 - (BOOL)authenticateWithMasterKey:(const uint8_t *)masterKey length:(NSUInteger)length;
152 - (BOOL)powerOffCard;
164 - (BOOL)getCardStatus;
177 - (BOOL)transmitApdu:(NSData *)apdu;
191 - (BOOL)transmitApdu:(const uint8_t *)apdu length:(NSUInteger)length;
202 - (BOOL)transmitEscapeCommand:(NSData *)command;
214 - (BOOL)transmitEscapeCommand:(const uint8_t *)command length:(NSUInteger)length;
231 - (void)bluetoothReader:(
ABTBluetoothReader *)bluetoothReader didAttachPeripheral:(CBPeripheral *)peripheral error:(NSError *)error;
264 - (void)bluetoothReader:(
ABTBluetoothReader *)bluetoothReader didChangeBatteryLevel:(NSUInteger)batteryLevel error:(NSError *)error;
271 - (void)bluetoothReader:(
ABTBluetoothReader *)bluetoothReader didAuthenticateWithError:(NSError *)error;
280 - (void)bluetoothReader:(
ABTBluetoothReader *)bluetoothReader didReturnAtr:(NSData *)atr error:(NSError *)error;
287 - (void)bluetoothReader:(
ABTBluetoothReader *)bluetoothReader didPowerOffCardWithError:(NSError *)error;
303 - (void)bluetoothReader:(
ABTBluetoothReader *)bluetoothReader didReturnResponseApdu:(NSData *)apdu error:(NSError *)error;
311 - (void)bluetoothReader:(
ABTBluetoothReader *)bluetoothReader didReturnEscapeResponse:(NSData *)response error:(NSError *)error;
No card is present.
Definition: ABTBluetoothReader.h:19
The battery is full.
Definition: ABTBluetoothReader.h:41
Hardware revision string.
Definition: ABTBluetoothReader.h:66
The card is present and inactive.
Definition: ABTBluetoothReader.h:22
BOOL _attached
Definition: ABTBluetoothReader.h:86
The card status is unknown.
Definition: ABTBluetoothReader.h:16
The ABTBluetoothReader class represents ACS Bluetooth readers.
Definition: ABTBluetoothReader.h:83
System ID.
Definition: ABTBluetoothReader.h:54
Manufacturer name string.
Definition: ABTBluetoothReader.h:69
Model number string.
Definition: ABTBluetoothReader.h:57
No battery.
Definition: ABTBluetoothReader.h:38
Serial number string.
Definition: ABTBluetoothReader.h:60
The USB is plugged.
Definition: ABTBluetoothReader.h:44
NSUInteger ABTBluetoothReaderDeviceInfo
Device information type.
Definition: ABTBluetoothReader.h:73
NSUInteger ABTBluetoothReaderBatteryStatus
Battery status type.
Definition: ABTBluetoothReader.h:48
Firmware revision string.
Definition: ABTBluetoothReader.h:63
The card is present and active.
Definition: ABTBluetoothReader.h:25
The reader is in power saving mode.
Definition: ABTBluetoothReader.h:28
The ABTBluetoothReaderDelegate protocol defines the response sent to a delegate of ABTBluetoothReader...
Definition: ABTBluetoothReader.h:222
NSUInteger ABTBluetoothReaderCardStatus
Card status type.
Definition: ABTBluetoothReader.h:32
CBPeripheral * _peripheral
Definition: ABTBluetoothReader.h:87