14#import <Foundation/Foundation.h>
15#import <UniPRT/JsonComm.h>
16#import <UniPRT/JsonMng.h>
17#import <UniPRT/TcpComm.h>
18#import <UniPRT/JsonCommController.h>
19#import <UniPRT/BtComm.h>
20#import <UniPRT/BleComm.h>
53 JsonComm *_MgmtCommPtr;
54 ImpChannel *_MsgsFromPtr;
59 NSString *_managedDescriptor;
111- (instancetype)initWithCommToPtr:(
AComm *)commToPtr iCommTyp:(CommType)iCommTyp maxInputMsgCapacity:(
int)maxInputMsgCapacity usingDataPort:(BOOL)usingDataPort;
150- (NSString *)sendMsgWithCommand:(NSString *)command content:(NSString *)content trackNo:(NSString *)trackNo;
189- (
JsonMng *)sendMsgAndWaitForResponseWithCommand:(NSString *)command content:(NSString *)content maxWaitTimeSecs:(
int)maxWaitTimeSecs;
237- (void)sendMsgRawWithDataToSend:(NSString *)dataToSend;
一个用于通信接口的基类,符合 IComm 协议。
定义 AComm.h:29
用於處理藍牙低功耗 (BLE) 連線的通訊類。
定义 BleComm.h:34
一个用于蓝牙通信的类,继承自 AComm。
定义 BtComm.h:32
用于管理基于 JSON 的消息传递的类。
定义 JsonMessenger.h:45
JsonMng * readNextMsg()
读取可能从打印机异步接收到的下一条消息。
void dispose()
释放对象,释放所有资源。
用于管理 JSON 消息的类。
定义 JsonMng.h:31
一个用于 TCP 通信的类,继承自 AComm 并符合 NSStreamDelegate 协议。
定义 TcpComm.h:101