summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7S.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7S.h')
-rw-r--r--libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7S.h106
1 files changed, 106 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7S.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7S.h
new file mode 100644
index 0000000..bc06c5a
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/BP7S.h
@@ -0,0 +1,106 @@
1//
2// BP7S.h
3// testShareCommunication
4//
5// Created by my on 8/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 BP7S device class
16 */
17@interface BP7S : BPDevice <BPBasicBTLEProtocol,BPOfflineDataTransferProtocol>
18
19#pragma mark - Hypogenous query
20
21/**
22 * Synchronize time and return the function and states that the device supports
23 * @param function A block to return the function and states that the device supports,judge if the device supports the function of up Air Measurement, arm Measurement, Angle Sensor, Angle Setting, HSD, Offline Memory, mutable Groups Upload, Self Upgrade. ‘True’ means yes or on, ‘False’ means no or off.
24 * @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP7S.
25 */
26-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error;
27
28/**
29 * Query battery remaining energy.
30 * @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%.
31 * @param error A block to return the error in ‘Establish measurement connection’
32 */
33-(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error;
34
35
36/**
37 * Upload offline data total Count.
38 * @param totalCount item quantity of total data.
39 * @param error A block to return the error.
40 */
41-(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error;
42
43/**
44 * Upload offline data.
45 * @param totalCount item quantity of total data
46 * @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed.
47 * @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment. corresponding KEYs are time, sys, dia, heartRate, irregular.
48 * @param error error codes.
49 * Specification:
50 * 1. BPError0 = 0: Unable to take measurements due to arm/wrist movements.
51 * 2. BPError1: Failed to detect systolic pressure.
52 * 3. BPError2: Failed to detect diastolic pressure.
53 * 4. BPError3: Pneumatic system blocked or cuff is too tight during inflation.
54 * 5. BPError4: Pneumatic system leakage or cuff is too loose during inflation.
55 * 6. BPError5: Cuff pressure reached over 300mmHg.
56 * 7. BPError6: Cuff pressure reached over 15 mmHg for more than 160 seconds.
57 * 8. BPError7: Data retrieving error.
58 * 9. BPError8: Data retrieving error.
59 * 10. BPError9: Data retrieving error.
60 * 11. BPError10: Data retrieving error.
61 * 12. BPError11: Communication Error.
62 * 13. BPError12: Communication Error.
63 * 14. BPError13: Low battery.
64 * 15. BPError14: Device bluetooth set failed.
65 * 16. BPError15: Systolic exceeds 260mmHg or diastolic exceeds 199mmHg.
66 * 17. BPError16: Systolic below 60mmHg or diastolic below 40mmHg.
67 * 18. BPError17: Arm/wrist movement beyond range.
68 * 19. BPNormalError=30: device error, error message displayed automatically.
69 * 20. BPOverTimeError: Abnormal communication.
70 * 21. BPNoRespondError: Abnormal communication.
71 * 22. BPBeyondRangeError: device is out of communication range.
72 * 23. BPDidDisconnect: device is disconnected.
73 * 24. BPAskToStopMeasure: measurement has been stopped.
74 * 25. BPInputParameterError=400: Parameter input error.
75 */
76-(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
77
78/**
79 * Set units for the Device
80 * @param UnitName The unit name string that BP7S show result should use, must be @"mmHg" or @"kPa".
81 * @param setResult This block return means set success.
82 * @param error A block to return the error in set Unit communication.
83 */
84-(void)commandSetUnit:(NSString *)UnitName disposeSetReslut:(BlockSuccess)setResult errorBlock:(BlockError)error;
85
86
87/**
88 Set the effective angle range for left hand measurement and right hand measurement to the Device
89
90 @param angleInfo A dictionary set the max and mini effective angles for left hand measurement and right hand measurement,the angle values type is NSNumber, ranging from 0~90
91 with the four keys are:
92 @"highAngleForLeft", @"lowAngleForLeft", @"highAngleForRight", @"lowAngleForRight".
93 @param setResult This block return means set success.
94 @param error A block to return the error in set angles communication.
95 */
96-(void)commandSetAngle:(NSDictionary *)angleInfo disposeSetReslut:(BlockSuccess)setResult errorBlock:(BlockError)error;
97
98/**
99 * Disconnect current device
100 */
101-(void)commandDisconnectDevice;
102
103
104
105
106@end