// // BLEServiceHandler.h // OneCable // // Created by KaRam Kim on 2017. 5. 18.. // Copyright © 2017년 ntels. All rights reserved. // #import #import "BTLEDeivceModel.h" @protocol BLEServiceHandlerDelegate @optional - (void) BLEConnectComplete; - (void) BLEDidReceiveMessage:(id)message result:(SocketModel *)result; - (void) BLEDidFailWithError:(NSError *)error; - (void) BLEDidReceivePong:(NSData *)pongPayload; - (void) BLEDidCloseWithCode:(NSInteger)code; @end @interface BLEServiceHandler : NSObject @property (readonly, nonatomic) BOOL isConnected; + (id)sharedManager; - (void)connect:(BTLEDeivceModel *)info; - (void) startScan; - (void) stopScan; - (void) sendDataWihOutDelegate:(SocketRequestModel *)data; - (void) sendDataWithDelegate:(SocketRequestModel *)data delegate:(id)delegate; - (void) sendDataWithDelegate:(SocketRequestModel *)data modelClass:(Class)modelClass delegate:(id)delegate; - (void) sendDataWithDelegate:(SocketRequestModel *)data modelClass:(Class)modelClass delegate:(id)delegate isShowLoading:(BOOL)isShowLoading; @end