| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // BLEServiceHandler.h
- // OneCable
- //
- // Created by KaRam Kim on 2017. 5. 18..
- // Copyright © 2017년 ntels. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "BTLEDeivceModel.h"
- @protocol BLEServiceHandlerDelegate <NSObject>
- @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
|