DeviceManager
final class DeviceManager : NSObject
Undocumented
-
Undocumented
Declaration
Swift
static let deviceServiceUUID: String
-
Undocumented
Declaration
Swift
static let writeCharacteristicUUID: String
-
Undocumented
Declaration
Swift
static let notifyCharacteristicUUID: String
-
Undocumented
Declaration
Swift
static let controlpointLengthCharacteristicUUID: String
-
Undocumented
Declaration
Swift
let peripheral: CBPeripheral
-
Undocumented
Declaration
Swift
var deviceName: String? { get }
-
Undocumented
Declaration
Swift
var onStateChanged: ((DeviceManager, DeviceManagerState) -> Void)?
-
Undocumented
Declaration
Swift
var onDebugMessage: ((DeviceManager, String) -> Void)?
-
Undocumented
Declaration
Swift
var onAPDUReceived: ((DeviceManager, Data) -> Void)?
-
Undocumented
Declaration
Swift
fileprivate(set) var state: DeviceManagerState { get set }
-
Undocumented
Declaration
Swift
init(peripheral: CBPeripheral)
-
Undocumented
Declaration
Swift
func bindForReadWrite()
-
Undocumented
Declaration
Swift
func exchangeAPDU(_ data: Data)
-
Undocumented
Declaration
Swift
func peripheral(_ peripheral: CBPeripheral, didDiscoverServices error: Error?)
-
Undocumented
Declaration
Swift
func peripheral(_ peripheral: CBPeripheral, didDiscoverCharacteristicsFor service: CBService, error: Error?)
-
Undocumented
Declaration
Swift
func peripheral(_ peripheral: CBPeripheral, didUpdateNotificationStateFor characteristic: CBCharacteristic, error: Error?)
-
Undocumented
Declaration
Swift
func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?)
-
Undocumented
Declaration
Swift
func peripheral(_ peripheral: CBPeripheral, didWriteValueFor characteristic: CBCharacteristic, error: Error?)