//
//  ENBPDevice.h
//  ENBLEProject
//
//  Created by lvwang2002 on 16/4/8.
//  Copyright © 2016年 Facebook. All rights reserved.
//

#import "ENNativeDevice.h"
#import "BLEDevice.h"
@protocol ENBPDeviceProtocal;
@interface ENBPDevice : ENNativeDevice
//@property(nonatomic,weak)id<ENBPDeviceProtocal>deviceDelegate;
-(void)startTest;
-(void)stopTest;
@end

@protocol ENBPDeviceProtocal <ENNativeDeviceProtocal>

/** 血压连接成功 */
@optional
-(void)onConnectedBPWithDevice:(BLEDevice *)device;

/** 获得电池电量 */
@optional
-(void)onBatteryPower:(unsigned long)power WithDevice:(BLEDevice *)device;

/** 得到测量结果 */
@optional
-(void)onResult:(NSDictionary *)result WithDevice:(BLEDevice *)device;

/** 得到测量  */
@optional
-(void)onProgressValue:(NSInteger)value WithDevice:(BLEDevice *)device;

/** 得到错误数据 */
@optional
-(void)onError:(NSString *)error WithDevice:(BLEDevice *)device;

/** 低电  */
@optional
-(void)onLowPowerWithDevice:(BLEDevice *)device;


@end