From d6d9a09d505d11148599a95a5be3e1351edbe0ac Mon Sep 17 00:00:00 2001 From: hc Date: Mon, 13 Apr 2026 15:17:52 +0800 Subject: Local iHealth SDK, device detail screen, iOS event fixes --- .../Communication_SDK/Headers/BP3L.h | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP3L.h (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP3L.h') diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP3L.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP3L.h new file mode 100644 index 0000000..0478149 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP3L.h @@ -0,0 +1,58 @@ +// +// BP3L.h +// testShareCommunication +// +// Created by my on 14/10/13. +// Copyright (c) 2013年 my. All rights reserved. +// + +#import +#import +#import "BPV24Device.h" + + +/** + BP3L device class + */ +@interface BP3L : BPV24Device + + + +/** + * Establish measurement connection and start BP measurement. + * @param blockZeroState Zeroing state + * @param pressure Pressure value in the process of measurement, the unit is ‘mmHg’. + * @param blockWaveletWithHeartbeat Wavelet data set with heart beat. + * @param blockWaveletWithoutHeartbeat Wavelet data set without heart beat. + * @param result result of the measurement, including systolic pressure, diastolic pressure, pulse rate and irregular judgment. Relevant key: time, sys, dia, heartRate, irregular. irregular will be 0 or 1. + * @param error Return error codes. + */ +-(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result errorBlock:(BlockError)error; + +/** + * Measurement termination and stop BP3L measurement + * @param success The block return means measurement has been terminated. + * @param error A block to return the error in ‘Establish measurement connection’ in BP3L. + */ +-(void)stopBPMeassureSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error; + +/** + * Synchronize time and judge if the device supports BT auto-connection, offline detection, and if the function on or off, corresponding KEYs are haveBlue, haveOffline, blueOpen, offlineOpen. ‘True’ means yes or on, ‘False’ means no or off + * @param function A block to return the function and states that the device supports. + * @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP3L. + */ +-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error; + +/** + * Query battery remaining energy + * @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%. + * @param error A block to return the error in ‘Establish measurement connection’. + */ +-(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error; + +/** + * Disconnect current device + */ +-(void)commandDisconnectDevice; + +@end -- cgit