// // RNBluetoothManager.h // RNBluetoothEscposPrinter // // Created by januslo on 2018/9/28. // Copyright © 2018年 Facebook. All rights reserved. // #import #import #import @protocol WriteDataToBleDelegate @required - (void) didWriteDataToBle: (BOOL)success; @end @interface RNBluetoothManager : RCTEventEmitter @property (strong, nonatomic) CBCentralManager *centralManager; @property (nonatomic,copy) RCTPromiseResolveBlock scanResolveBlock; @property (nonatomic,copy) RCTPromiseRejectBlock scanRejectBlock; @property (strong,nonatomic) NSMutableDictionary *foundDevices; @property (strong,nonatomic) NSString *waitingConnect; @property (nonatomic,copy) RCTPromiseResolveBlock connectResolveBlock; @property (nonatomic,copy) RCTPromiseRejectBlock connectRejectBlock; +(void)writeValue:(NSData *) data withDelegate:(NSObject *) delegate; +(Boolean)isConnected; -(void)initSupportServices; -(void)callStop; @end