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/UsbComm.h>
21#import <UniPRT/BleComm.h>
54 JsonComm *_MgmtCommPtr;
55 ImpChannel *_MsgsFromPtr;
60 NSString *_managedDescriptor;
112- (instancetype)initWithCommToPtr:(
AComm *)commToPtr iCommTyp:(CommType)iCommTyp maxInputMsgCapacity:(
int)maxInputMsgCapacity usingDataPort:(BOOL)usingDataPort;
151- (NSString *)sendMsgWithCommand:(NSString *)command content:(NSString *)content trackNo:(NSString *)trackNo;
190- (
JsonMng *)sendMsgAndWaitForResponseWithCommand:(NSString *)command content:(NSString *)content maxWaitTimeSecs:(
int)maxWaitTimeSecs;
238- (void)sendMsgRawWithDataToSend:(NSString *)dataToSend;
一個用於通信接口的基類,符合 IComm 協議。
Definition AComm.h:29
用於處理藍牙低功耗 (BLE) 連線的通訊類別。
Definition BleComm.h:34
藍牙通信類,繼承自 AComm。
Definition BtComm.h:27
用於管理基於 JSON 的消息傳遞的類。
Definition JsonMessenger.h:46
JsonMng * readNextMsg()
讀取可能從打印機異步接收到的下一條消息。
void dispose()
釋放對象,釋放所有資源。
用於管理 JSON 消息的類。
Definition JsonMng.h:31
一個用於 TCP 通信的類,繼承自 AComm 並符合 NSStreamDelegate 協議。
Definition TcpComm.h:101
實現USB特定通信並繼承AComm類的類。
Definition UsbComm.h:30