summaryrefslogtreecommitdiff
path: root/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/KN550BT.h
diff options
context:
space:
mode:
authorhc <haocheng.xie@respiree.com>2026-04-13 15:17:52 +0800
committerhc <haocheng.xie@respiree.com>2026-04-13 15:17:52 +0800
commitd6d9a09d505d11148599a95a5be3e1351edbe0ac (patch)
treea5f5891983d1ff207e99f683a5e151519cef4980 /libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/KN550BT.h
parente4fb9966e762852bf17f21c8406501d42fae0b61 (diff)
Local iHealth SDK, device detail screen, iOS event fixes
Diffstat (limited to 'libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/KN550BT.h')
-rw-r--r--libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/KN550BT.h115
1 files changed, 115 insertions, 0 deletions
diff --git a/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/KN550BT.h b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/KN550BT.h
new file mode 100644
index 0000000..867f059
--- /dev/null
+++ b/libs/ihealth-sdk/ios/ReactNativeIOSLibrary/Communication_SDK/Headers/KN550BT.h
@@ -0,0 +1,115 @@
1//
2// KN550BT.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 "BPAV10Device.h"
11#import <UIKit/UIKit.h>
12
13
14/**
15 KN550BT device class
16 */
17@interface KN550BT : BPAV10Device <BPBasicBTLEProtocol,BPOfflineDataTransferProtocol>
18
19@property (nonatomic, assign, readonly) BOOL isSupportDisplayConfig;
20
21
22#pragma mark - Hypogenous query
23
24/**
25 * Synchronize time and 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.
26 * @param function A block to return the function and states that the device supports.
27 * @param error A block to refer ‘error’ in ‘Establish measurement connection’ in KN550BT.
28 */
29-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error;
30
31/**
32 * Query battery remaining energy.
33 * @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%.
34 * @param error A block to return the error in ‘Establish measurement connection’
35 */
36-(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error;
37
38
39/**
40 * Upload offline data total Count.
41 * @param totalCount item quantity of total data.
42 * @param error A block to return the error.
43 */
44-(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error;
45
46/**
47 * Upload offline data.
48 * @param totalCount item quantity of total data
49 * @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed.
50 * @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment. corresponding KEYs are time, sys, dia, heartRate, irregular.
51 * @param error error codes.
52 * Specification:
53 * 1. BPError0 = 0: Unable to take measurements due to arm/wrist movements.
54 * 2. BPError1: Failed to detect systolic pressure.
55 * 3. BPError2: Failed to detect diastolic pressure.
56 * 4. BPError3: Pneumatic system blocked or cuff is too tight during inflation.
57 * 5. BPError4: Pneumatic system leakage or cuff is too loose during inflation.
58 * 6. BPError5: Cuff pressure reached over 300mmHg.
59 * 7. BPError6: Cuff pressure reached over 15 mmHg for more than 160 seconds.
60 * 8. BPError7: Data retrieving error.
61 * 9. BPError8: Data retrieving error.
62 * 10. BPError9: Data retrieving error.
63 * 11. BPError10: Data retrieving error.
64 * 12. BPError11: Communication Error.
65 * 13. BPError12: Communication Error.
66 * 14. BPError13: Low battery.
67 * 15. BPError14: Device bluetooth set failed.
68 * 16. BPError15: Systolic exceeds 260mmHg or diastolic exceeds 199mmHg.
69 * 17. BPError16: Systolic below 60mmHg or diastolic below 40mmHg.
70 * 18. BPError17: Arm/wrist movement beyond range.
71 * 19. BPNormalError=30: device error, error message displayed automatically.
72 * 20. BPOverTimeError: Abnormal communication.
73 * 21. BPNoRespondError: Abnormal communication.
74 * 22. BPBeyondRangeError: device is out of communication range.
75 * 23. BPDidDisconnect: device is disconnected.
76 * 24. BPAskToStopMeasure: measurement has been stopped.
77 * 25. BPInputParameterError=400: Parameter input error.
78 */
79-(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
80
81/**
82 * Set units for the Device
83 * @param UnitName The unit name string that KN550BT show result should use, must be @"mmHg" or @"kPa".
84 * @param setResult This block return means set success.
85 * @param error A block to return the error in set Unit communication.
86 */
87-(void)commandSetUnit:(NSString *)UnitName disposeSetReslut:(BlockSuccess)setResult errorBlock:(BlockError)error;
88
89
90/**
91 * Disconnect current device
92 */
93-(void)commandDisconnectDevice;
94
95
96/**
97 get status of device display
98
99 @param displayStatusBlock feedback status
100 @param errorBlock A block to return the error
101 */
102-(void)commandGetStatusOfDisplay:(BlockDisplayStatus)displayStatusBlock error:(BlockError)errorBlock;
103
104
105/**
106 set status of device display
107
108 @param backLightOn turn on back light or not
109 @param clockOn show clock or not
110 @param successBlock This block return means set success
111 @param errorBlock A block to return the error
112 */
113-(void)commandSetStatusOfDisplayForBackLight:(BOOL)backLightOn andClock:(BOOL)clockOn resultSuccess:(BlockSuccess)successBlock error:(BlockError)errorBlock;
114
115@end