//
//  SunriseBleTool.h
//  SunriseBleTool
//
//  Created by TZ on 16/4/7.
//  Copyright © 2016年 Sunrise. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>

//! Project version number for SunriseBleTool.
FOUNDATION_EXPORT double SunriseBleToolVersionNumber;

//! Project version string for SunriseBleTool.
FOUNDATION_EXPORT const unsigned char SunriseBleToolVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <SunriseBleTool/PublicHeader.h>

@protocol SunriseBleToolDelegate;
@interface SunriseBleTool : NSObject;
@property (assign) id<SunriseBleToolDelegate> delegate;

//初始化并设置代理
- (id)init:(id)mySelf;

//连接蓝牙设备对象
- (bool)connectBt:(CBPeripheral*)bt usingCBManager:(CBCentralManager*)cbmanager;

//断开蓝牙
- (bool)disconnectBt;

//读取身份证
//- (NSDictionary*)readCert;

//云识别身份证
- (NSDictionary*)cloudReadCert:(NSString *)token serverList:(NSArray *)serverList redisServer:(NSString *)redisServer crmSn:(NSString *)crmSn;

//获取设备信息
- (NSDictionary *)getReaderInfo;

//获取厂家信息
- (NSString *)factoryName;


@end

@protocol SunriseBleToolDelegate <NSObject>

@required

- (void)BR_connectResult:(BOOL)isconnected;

- (void)SBluetoothBack:(NSString*)time;
- (void)SNetworkBack:(NSString*)time;

@end
