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

#import <Foundation/Foundation.h>
#import "ENNativeDevice.h"
#import "BLEDevice.h"

@protocol ENPangaoBPDeviceProtocal;
@interface ENPangaoBPDevice : ENNativeDevice
//@property(nonatomic,weak)id<ENNativeDeviceProtocal>deviceDelegate;
-(void)startTest;
-(void)stopTest;
-(void)sendGetBatteryValue;

@end

@protocol ENPangaoBPDeviceProtocal <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 IsHeart:(Boolean)isHeart WithDevice:(BLEDevice *)device;

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

/** 开始测量 */
@optional
-(void)onStartTestWithDevice:(BLEDevice *)device;

/** 停止测量 */
@optional
-(void)onStopTestWithDevice:(BLEDevice *)device;

/** 停止浮零 */
@optional
-(void)onStopZeroWithDevice:(BLEDevice *)device;

/** 获取电量 */
-(void)onPower:(int)power WithDevice:(BLEDevice *)device;

/** 血压计发送关机指令 */
@optional
-(void)onDeviceShutDownWithDevice:(BLEDevice *) device;

@optional
-(void)onCheckConnectFinishWithDevice:(BLEDevice *)device Status:(BOOL)isSuc;
@end
