UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
BtComm.h
1//
2// BtComm.h
3// TSCPrinters SDK
4//
5// Created by Realbuber on 2024/3/26.
6//
9#import <Foundation/Foundation.h>
10#import <IOBluetooth/IOBluetooth.h>
11#import <UniPRT/AComm.h>
12
27@interface BtComm : AComm
28
37@property (nonatomic, strong) NSMutableData *receivedData;
38
56- (instancetype)initWithDeviceAddress:(NSString *)deviceAddress;
57
66- (void)open;
67
76- (void)close;
77
92- (void)write:(NSData *)text;
93
108- (NSData *)read;
109
136- (NSData *)writeAndWaitForResponse:(NSData *)text
137 responseStartTimeOut:(NSTimeInterval)responseStartTimeOut
138 responseEndTimeOut:(NSTimeInterval)responseEndTimeOut
139 completionToken:(NSString *)completionToken;
140
141@end
142
A base class for communication interfaces, conforming to the IComm protocol.
Definition AComm.h:29