react-native-bt-device/ios/RNBTDevice/INVSSDK.framework/Headers/INVSBleTool.h

23 lines
711 B
Objective-C
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
@protocol BR_Callback <NSObject>
//用于蓝牙设备连接状态变更的通知
-(void)BR_connectResult:(BOOL)isconnected;
@end
@interface INVSBleTool : NSObject <CBCentralManagerDelegate, CBPeripheralDelegate>
//初始化
- (instancetype)init:(id<BR_Callback>)delegate;
//连接蓝牙设备
- (BOOL)connect:(NSString *) device;//支持名称mac地址uuid
- (BOOL)connectBt:(CBPeripheral *)peripheral;
- (BOOL)connectBt:(CBPeripheral *)peripheral usingCBManager:(CBCentralManager *)cbmanager;
//断开蓝牙设备连接
- (BOOL)disconnectBt;
//读取身份证信息
- (NSDictionary *)readCert;
- (NSDictionary *)readCard;
@end