diff options
| author | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
|---|---|---|
| committer | hc <haocheng.xie@respiree.com> | 2026-04-13 15:17:52 +0800 |
| commit | d6d9a09d505d11148599a95a5be3e1351edbe0ac (patch) | |
| tree | a5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP5SRW.h | |
| parent | e4fb9966e762852bf17f21c8406501d42fae0b61 (diff) | |
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP5SRW.h')
| -rw-r--r-- | libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP5SRW.h | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP5SRW.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP5SRW.h new file mode 100644 index 0000000..e2e8d77 --- /dev/null +++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP5SRW.h | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | // | ||
| 2 | // BP5SRW.h | ||
| 3 | // testShareCommunication | ||
| 4 | // | ||
| 5 | // Created by my on 14/10/13. | ||
| 6 | // Copyright (c) 2013年 my. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import <Foundation/Foundation.h> | ||
| 10 | #import "BPDevice.h" | ||
| 11 | #import <UIKit/UIKit.h> | ||
| 12 | |||
| 13 | |||
| 14 | /** | ||
| 15 | BP5SRW device class | ||
| 16 | */ | ||
| 17 | @interface BP5SRW : BPDevice | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | /** | ||
| 22 | * Establish measurement connection and start BP measurement. | ||
| 23 | * @Notice By the first time of new user register via SDK, ‘iHealth disclaimer’ will pop up automatically, and require the user agrees to continue. SDK application requires Internet connection; there is 10-day tryout if SDK cannot connect Internet, SDK is fully functional during tryout period, but will be terminated without verification through Internet after 10 days. | ||
| 24 | * @param blockZeroState Zeroing state | ||
| 25 | * @param pressure Pressure value in the process of measurement, the unit is ‘mmHg’. | ||
| 26 | * @param blockWaveletWithHeartbeat Wavelet data set with heart beat. | ||
| 27 | * @param blockWaveletWithoutHeartbeat Wavelet data set without heart beat. | ||
| 28 | * @param result result of the measurement, including systolic pressure, diastolic pressure, pulse rate and irregular judgment. Relevant key: time, sys, dia, heartRate, irregular. | ||
| 29 | * @param redWave A block to return wave information,include the packets order number(0~255),the current measure status(@1 means measuring,@2 means constant Pressure measuring,@3 means completed),the pressure data type(@1 means pressure data ,@2 means wave data) ,the pressure or wave count ,the pressure or wave data array.The corresponding keys are @"packetOrderID",@"measureStatusID",@"pressureDataType",@"pressureCount",@"pressureArray". | ||
| 30 | * @param error Return error codes. | ||
| 31 | * Specification: | ||
| 32 | * 1. BPError0 = 0: Unable to take measurements due to arm/wrist movements. | ||
| 33 | * 2. BPError1: Failed to detect systolic pressure. | ||
| 34 | * 3. BPError2: Failed to detect diastolic pressure. | ||
| 35 | * 4. BPError3: Pneumatic system blocked or cuff is too tight during inflation. | ||
| 36 | * 5. BPError4: Pneumatic system leakage or cuff is too loose during inflation. | ||
| 37 | * 6. BPError5: Cuff pressure reached over 300mmHg. | ||
| 38 | * 7. BPError6: Cuff pressure reached over 15 mmHg for more than 160 seconds. | ||
| 39 | * 8. BPError7: Data retrieving error. | ||
| 40 | * 9. BPError8: Data retrieving error. | ||
| 41 | * 10. BPError9: Data retrieving error. | ||
| 42 | * 11. BPError10: Data retrieving error. | ||
| 43 | * 12. BPError11: Communication Error. | ||
| 44 | * 13. BPError12: Communication Error. | ||
| 45 | * 14. BPError13: Low battery. | ||
| 46 | * 15. BPError14: Device bluetooth set failed. | ||
| 47 | * 16. BPError15: Systolic exceeds 260mmHg or diastolic exceeds 199mmHg. | ||
| 48 | * 17. BPError16: Systolic below 60mmHg or diastolic below 40mmHg. | ||
| 49 | * 18. BPError17: Arm/wrist movement beyond range. | ||
| 50 | * 19. BPError18: Bleed to specified pressure over time | ||
| 51 | * 20. BPError19: Constant pressure acquisition process changes over the specified range of pressure. | ||
| 52 | * 21. BPNormalError=30: device error, error message displayed automatically. | ||
| 53 | * 22. BPOverTimeError: Abnormal communication. | ||
| 54 | * 23. BPNoRespondError: Abnormal communication. | ||
| 55 | * 24. BPBeyondRangeError: device is out of communication range. | ||
| 56 | * 25. BPDidDisconnect: device is disconnected. | ||
| 57 | * 26. BPAskToStopMeasure: measurement has been stopped. | ||
| 58 | * 27. BPInputParameterError=400: Parameter input error. | ||
| 59 | */ | ||
| 60 | |||
| 61 | -(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result redWave:(BlockRedWaveDic)redWave errorBlock:(BlockError)error; | ||
| 62 | |||
| 63 | /** | ||
| 64 | * Measurement termination and stop BP5SRW measurement | ||
| 65 | * @param success The block return means measurement has been terminated. | ||
| 66 | * @param error A block to return the error in ‘Establish measurement connection’ in BP5SRW. | ||
| 67 | */ | ||
| 68 | -(void)stopBPMeassureSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error; | ||
| 69 | |||
| 70 | /** | ||
| 71 | * Synchronize time and judge if the device supports BT auto-connection, offline detection, and if the function on or off, corresponding KEY as haveBlue, haveOffline, blueOpen, offlineOpen. ‘True’ means yes or on, ‘False’ means no or off | ||
| 72 | * @param function A block to return the function and states that the device supports. | ||
| 73 | * @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP5SRW. | ||
| 74 | */ | ||
| 75 | -(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error; | ||
| 76 | |||
| 77 | /** | ||
| 78 | * Query battery remaining energy | ||
| 79 | * @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%. | ||
| 80 | * @param error A block to return the error in ‘Establish measurement connection’. | ||
| 81 | */ | ||
| 82 | -(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error; | ||
| 83 | |||
| 84 | |||
| 85 | /** | ||
| 86 | Set the target measure configure | ||
| 87 | |||
| 88 | @param targetPressure Set the target constant pressure in measuring. | ||
| 89 | @param fluctuationPressure Set the allowed range of pressure fluctuations. | ||
| 90 | @param sampleTime Set the pressure sample time. | ||
| 91 | @param setResult Success callback | ||
| 92 | @param error A block to return the error in ‘Establish measurement connection’. | ||
| 93 | */ | ||
| 94 | -(void)CommandSetPressureSamplewithTargetPressure:(NSNumber *)targetPressure fluctuationRange:(NSNumber *)fluctuationPressure sampleTime:(NSNumber *)sampleTime disposeSetPresureTargetSuccess:(BlockSuccess)setResult errorBlock:(BlockError)error; | ||
| 95 | |||
| 96 | /** | ||
| 97 | * Disconnect current device | ||
| 98 | */ | ||
| 99 | -(void)commandDisconnectDevice; | ||
| 100 | |||
| 101 | @end | ||
