8#import <Foundation/Foundation.h>
9#import <IOBluetooth/IOBluetooth.h>
10#import <UniPRT/AComm.h>
55- (instancetype)initWithDeviceAddress:(NSString *)deviceAddress;
91- (void)write:(NSData *)text;
135- (NSData *)writeAndWaitForResponse:(NSData *)text
136 responseStartTimeOut:(NSTimeInterval)responseStartTimeOut
137 responseEndTimeOut:(NSTimeInterval)responseEndTimeOut
138 completionToken:(NSString *)completionToken;
140- (NSData *)writeAndWaitForResponseJson:(NSData *)text
141 responseStartTimeOut:(NSTimeInterval)responseStartTimeOut
142 responseEndTimeOut:(NSTimeInterval)responseEndTimeOut
143 completionToken:(NSString *)completionToken;
A base class for communication interfaces, conforming to the IComm protocol.
Definition AComm.h:29
A class for Bluetooth communication, inheriting from AComm.
Definition BtComm.h:27
void open()
Opens the connection to the Bluetooth device.
NSMutableData * receivedData
The data received from the device.
Definition BtComm.h:36
NSData * read()
Reads data from the Bluetooth device.
void close()
Closes the connection to the Bluetooth device.