capacitor-plugin-ihealth 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapacitorPluginIhealth.podspec +35 -0
- package/README.md +214 -0
- package/android/build.gradle +58 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealth.java +11 -0
- package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealthPlugin.java +22 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +450 -0
- package/dist/esm/definitions.d.ts +29 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +37 -0
- package/dist/esm/web.js +42 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +58 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +61 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/Info.plist +24 -0
- package/ios/Plugin/Plugin-Bridging-Header.h +35 -0
- package/ios/Plugin/iHealthSDKHeaders/ABI.h +82 -0
- package/ios/Plugin/iHealthSDKHeaders/ABIController.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/ABPM.h +144 -0
- package/ios/Plugin/iHealthSDKHeaders/ABPMController.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3.h +188 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3Controller.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3SController_V2.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/AM3S_V2.h +227 -0
- package/ios/Plugin/iHealthSDKHeaders/AM4.h +223 -0
- package/ios/Plugin/iHealthSDKHeaders/AM4Controller.h +31 -0
- package/ios/Plugin/iHealthSDKHeaders/AM5.h +335 -0
- package/ios/Plugin/iHealthSDKHeaders/AM5Controller.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/AM5Header.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/AMHeader.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/AMMacroFile.h +1171 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1.h +53 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1Controller.h +46 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1S.h +64 -0
- package/ios/Plugin/iHealthSDKHeaders/BG1SController.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BG3.h +83 -0
- package/ios/Plugin/iHealthSDKHeaders/BG3Controller.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5.h +158 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5Controller.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5S.h +294 -0
- package/ios/Plugin/iHealthSDKHeaders/BG5SController.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/BGController.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/BGDevice.h +42 -0
- package/ios/Plugin/iHealthSDKHeaders/BGHeader.h +23 -0
- package/ios/Plugin/iHealthSDKHeaders/BGMacroFile.h +507 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3.h +77 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3Controller.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3L.h +58 -0
- package/ios/Plugin/iHealthSDKHeaders/BP3LController.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5C.h +131 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5CController.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5Controller.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5S.h +97 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5SController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5SRW.h +101 -0
- package/ios/Plugin/iHealthSDKHeaders/BP5SRWController.h +26 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7.h +141 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7Controller.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7S.h +106 -0
- package/ios/Plugin/iHealthSDKHeaders/BP7SController.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/BPAV10Device.h +15 -0
- package/ios/Plugin/iHealthSDKHeaders/BPBTLEDevice.h +17 -0
- package/ios/Plugin/iHealthSDKHeaders/BPBV10Device.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/BPContinua.h +56 -0
- package/ios/Plugin/iHealthSDKHeaders/BPContinuaController.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/BPController.h +40 -0
- package/ios/Plugin/iHealthSDKHeaders/BPDevice.h +131 -0
- package/ios/Plugin/iHealthSDKHeaders/BPHeader.h +54 -0
- package/ios/Plugin/iHealthSDKHeaders/BPLoopMeasureSettingModel.h +120 -0
- package/ios/Plugin/iHealthSDKHeaders/BPM1AE.h +80 -0
- package/ios/Plugin/iHealthSDKHeaders/BPMacroFile.h +247 -0
- package/ios/Plugin/iHealthSDKHeaders/BPV24Device.h +16 -0
- package/ios/Plugin/iHealthSDKHeaders/BPV25Device.h +17 -0
- package/ios/Plugin/iHealthSDKHeaders/ConnectDeviceController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUController.h +160 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUDeviceFirmwareInfo.h +56 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUHeader.h +19 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUMacro.h +264 -0
- package/ios/Plugin/iHealthSDKHeaders/DFUServerFirmwareInfo.h +48 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3.h +94 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3Controller.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3USB.h +145 -0
- package/ios/Plugin/iHealthSDKHeaders/ECG3USBController.h +31 -0
- package/ios/Plugin/iHealthSDKHeaders/ECGHeader.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/ECGMacroFile.h +84 -0
- package/ios/Plugin/iHealthSDKHeaders/HFSmartLink.h +88 -0
- package/ios/Plugin/iHealthSDKHeaders/HFSmartLinkDeviceInfo.h +14 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2.h +64 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2Controller.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2S.h +399 -0
- package/ios/Plugin/iHealthSDKHeaders/HS2SController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/HS3.h +63 -0
- package/ios/Plugin/iHealthSDKHeaders/HS3Controller.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/HS4.h +64 -0
- package/ios/Plugin/iHealthSDKHeaders/HS4Controller.h +26 -0
- package/ios/Plugin/iHealthSDKHeaders/HS5.h +141 -0
- package/ios/Plugin/iHealthSDKHeaders/HS5Controller.h +38 -0
- package/ios/Plugin/iHealthSDKHeaders/HSHeader.h +25 -0
- package/ios/Plugin/iHealthSDKHeaders/HSMacroFile.h +709 -0
- package/ios/Plugin/iHealthSDKHeaders/HealthHeader.h +67 -0
- package/ios/Plugin/iHealthSDKHeaders/HealthUser.h +126 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBindEnum.h +49 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBlueDataResponse.h +66 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBlueEnum.h +213 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothBaseModel.h +112 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothEngine.h +283 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothManager.h +166 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothServices.h +75 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOCalculateBluetoothModel.h +263 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOCommonMacro.h +89 -0
- package/ios/Plugin/iHealthSDKHeaders/IDODataExchangeModel.h +128 -0
- package/ios/Plugin/iHealthSDKHeaders/IDODataMigrationManager.h +79 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOErrorCodeToStr.h +19 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOFoundationCommand.h +1178 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOGetInfoBluetoothModel.h +1924 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOLogEnum.h +165 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOPeripheralModel.h +59 -0
- package/ios/Plugin/iHealthSDKHeaders/IDORecordDeviceLog.h +56 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSetInfoBluetoothModel.h +1760 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncActivityDataModel.h +207 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncBpDataModel.h +191 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncEnum.h +316 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncGpsDataModel.h +133 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncHeartRateDataModel.h +442 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncManager.h +161 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncPressureDataModel.h +158 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSleepDataModel.h +224 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSpo2DataModel.h +175 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSportDataModel.h +221 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOSyncSwimDataModel.h +188 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOTranEnum.h +93 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOTransferFileManager.h +116 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialInfoModel.h +95 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialManager.h +75 -0
- package/ios/Plugin/iHealthSDKHeaders/IDOWeightBluetoothModel.h +124 -0
- package/ios/Plugin/iHealthSDKHeaders/IHSDKCloudUser.h +104 -0
- package/ios/Plugin/iHealthSDKHeaders/KN550BT.h +115 -0
- package/ios/Plugin/iHealthSDKHeaders/KN550BTController.h +32 -0
- package/ios/Plugin/iHealthSDKHeaders/ManageDeviceController.h +34 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13B.h +33 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13BController.h +28 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13BHeader.h +16 -0
- package/ios/Plugin/iHealthSDKHeaders/NT13BMacroFile.h +34 -0
- package/ios/Plugin/iHealthSDKHeaders/PO1.h +82 -0
- package/ios/Plugin/iHealthSDKHeaders/PO1Controller.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/PO3.h +96 -0
- package/ios/Plugin/iHealthSDKHeaders/PO3Controller.h +29 -0
- package/ios/Plugin/iHealthSDKHeaders/POHeader.h +20 -0
- package/ios/Plugin/iHealthSDKHeaders/POMacroFile.h +142 -0
- package/ios/Plugin/iHealthSDKHeaders/PT3SBT.h +167 -0
- package/ios/Plugin/iHealthSDKHeaders/PT3SBTController.h +27 -0
- package/ios/Plugin/iHealthSDKHeaders/PT3SBTMacroFile.h +92 -0
- package/ios/Plugin/iHealthSDKHeaders/SDKFlowUpdateDevice.h +196 -0
- package/ios/Plugin/iHealthSDKHeaders/SDKInfo.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/SDKUpdateDevice.h +235 -0
- package/ios/Plugin/iHealthSDKHeaders/ScanDeviceController.h +47 -0
- package/ios/Plugin/iHealthSDKHeaders/THV3.h +104 -0
- package/ios/Plugin/iHealthSDKHeaders/THV3Controller.h +30 -0
- package/ios/Plugin/iHealthSDKHeaders/THV3Macro.h +17 -0
- package/ios/Plugin/iHealthSDKHeaders/TS28B.h +26 -0
- package/ios/Plugin/iHealthSDKHeaders/TS28BController.h +142 -0
- package/ios/Plugin/iHealthSDKHeaders/TS28BHeader.h +15 -0
- package/ios/Plugin/iHealthSDKHeaders/iHealthHS6.h +174 -0
- package/ios/Plugin/ihealth.swift +8 -0
- package/ios/Plugin/ihealthPlugin.h +10 -0
- package/ios/Plugin/ihealthPlugin.m +16 -0
- package/ios/Plugin/ihealthPlugin.swift +1502 -0
- package/ios/Plugin/libiHealthSDK2.7.8.a +0 -0
- package/ios/Plugin/test.m +9 -0
- package/package.json +78 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
//
|
2
|
+
// BP5.h
|
3
|
+
// testShareCommunication
|
4
|
+
//
|
5
|
+
// Created by my on 14/10/13.
|
6
|
+
// Copyright (c) 2013年 my. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "BP7.h"
|
10
|
+
|
11
|
+
|
12
|
+
/**
|
13
|
+
BP5 device class
|
14
|
+
*/
|
15
|
+
@interface BP5 : BP7
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Establish measurement connection and start BP measurement(Only for BP5).
|
19
|
+
* @param blockZeroState Zeroing state
|
20
|
+
* @param pressure Pressure value in the process of measurement, the unit is ‘mmHg’.
|
21
|
+
* @param blockWaveletWithHeartbeat Wavelet data set with heart beat.
|
22
|
+
* @param blockWaveletWithoutHeartbeat Wavelet data set without heart beat.
|
23
|
+
* @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.
|
24
|
+
* @param error Return error codes.
|
25
|
+
*/
|
26
|
+
|
27
|
+
-(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result errorBlock:(BlockError)error;
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
@end
|
@@ -0,0 +1,131 @@
|
|
1
|
+
//
|
2
|
+
// BP5C.h
|
3
|
+
// iHealthSDKStatic
|
4
|
+
//
|
5
|
+
// Created by Realank on 2017/9/26.
|
6
|
+
// Copyright © 2017年 ihealthSDK. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "BPBV10Device.h"
|
10
|
+
@interface BP5C : BPBV10Device<BPBasicBTLEProtocol,BPRealtimeMeasureProtocol,BPOfflineDataTransferProtocol>
|
11
|
+
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Synchronize time and return functions this device supports.
|
15
|
+
* @param function A block to return the functions and states that the device supports.
|
16
|
+
* @param error Operation failed, and returns the error codes.
|
17
|
+
*/
|
18
|
+
-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error;
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Get battery remaining energy by percent
|
22
|
+
* @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%.
|
23
|
+
* @param error Operation failed, and returns the error codes.
|
24
|
+
*/
|
25
|
+
-(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error;
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Set units for the Device
|
29
|
+
* @param UnitName The unit name of the result, must be @"mmHg" or @"kPa".
|
30
|
+
* @param setResult This block return means set success.
|
31
|
+
* @param error Operation failed, and returns the error codes.
|
32
|
+
*/
|
33
|
+
-(void)commandSetUnit:(NSString *)UnitName disposeSetReslut:(BlockSuccess)setResult errorBlock:(BlockError)error;
|
34
|
+
|
35
|
+
|
36
|
+
/**
|
37
|
+
Set auto loop measure scheme
|
38
|
+
|
39
|
+
@param scheme scheme content
|
40
|
+
@param successBlock A block refer to success.
|
41
|
+
@param errorBlock Operation failed, and returns the error codes.
|
42
|
+
*/
|
43
|
+
- (void)commandSetLoopMeasureScheme:(BPLoopMeasureSettingModel*)scheme successBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock;
|
44
|
+
|
45
|
+
/**
|
46
|
+
Get auto loop measure scheme
|
47
|
+
|
48
|
+
@param loopMeasureSchemeBlock return auto loop measure scheme content
|
49
|
+
@param errorBlock Operation failed, and returns the error codes.
|
50
|
+
*/
|
51
|
+
- (void)commandAskLoopMeasureScheme:(BlockAskLoopMeasureScheme)loopMeasureSchemeBlock errorBlock:(BlockError)errorBlock;
|
52
|
+
|
53
|
+
/**
|
54
|
+
* Start BP measurement.
|
55
|
+
* @param blockZeroState Zeroing state
|
56
|
+
* @param pressure Pressure value in the process of measurement, the unit is ‘mmHg’.
|
57
|
+
* @param blockWaveletWithHeartbeat Wavelet data set including pulse rate
|
58
|
+
* @param blockWaveletWithoutHeartbeat Wavelet data set without pulse rate
|
59
|
+
* @param result result of the measurement, including systolic pressure, diastolic pressure, pulse rate and irregular judgment. Relevant keys: time, sys, dia, heartRate, irregular. irregular will be 0 or 1.
|
60
|
+
* @param error Operation failed, and returns the error codes.
|
61
|
+
*/
|
62
|
+
-(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result errorBlock:(BlockError)error;
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Stop measurement
|
66
|
+
* @param success The block return means measurement has been terminated.
|
67
|
+
* @param error Operation failed, and returns the error codes.
|
68
|
+
*/
|
69
|
+
-(void)stopBPMeassureSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error;
|
70
|
+
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Upload history data.
|
74
|
+
* @param totalCount history data total Count.
|
75
|
+
* @param progress upload completion ratio , from 0.0 to 1.0.
|
76
|
+
* @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment,scheme ID,body movement flag. corresponding KEYs are time, sys, dia, heartRate, irregular,schemeID,bodyMovementFlg.
|
77
|
+
* @param error Operation failed, and returns the error codes.
|
78
|
+
*/
|
79
|
+
-(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
|
80
|
+
|
81
|
+
-(void)commandTransferMemoryDataAndRawPressureWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Upload history data total Count.
|
85
|
+
* @param totalCount item quantity of total data.
|
86
|
+
* @param error Operation failed, and returns the error codes.
|
87
|
+
*/
|
88
|
+
-(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error;
|
89
|
+
|
90
|
+
|
91
|
+
/**
|
92
|
+
Delete all the history memory stored in device
|
93
|
+
|
94
|
+
@param successBlock A block refer to delete complete.
|
95
|
+
@param errorBlock Operation failed, and returns the error codes.
|
96
|
+
*/
|
97
|
+
- (void)commandDeleteAllMemoryWithSuccessBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock;
|
98
|
+
|
99
|
+
|
100
|
+
/**
|
101
|
+
Set ID String (eg.patientID, schemeID), length 100 max
|
102
|
+
|
103
|
+
@param idString the content of id
|
104
|
+
@param successBlock A block refer to success.
|
105
|
+
@param errorBlock Operation failed, and returns the error codes.
|
106
|
+
*/
|
107
|
+
- (void)commandSetIDString:(NSString*)idString successBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock;
|
108
|
+
|
109
|
+
|
110
|
+
/**
|
111
|
+
Ask ID String
|
112
|
+
|
113
|
+
@param idStringResultBlock return ID String
|
114
|
+
@param errorBlock Operation failed, and returns the error codes.
|
115
|
+
*/
|
116
|
+
- (void)commandAskIDStringWithResult:(BlockAskIDString)idStringResultBlock errorBlock:(BlockError)errorBlock;
|
117
|
+
|
118
|
+
/**
|
119
|
+
Change loop measure scheme status
|
120
|
+
|
121
|
+
@param start YES to start, NO to pause
|
122
|
+
@param successBlock A block refer to success.
|
123
|
+
@param errorBlock Operation failed, and returns the error codes.
|
124
|
+
*/
|
125
|
+
- (void)commandChangeLoopMeasureStatusToStart:(BOOL)start successBlock:(BlockSuccess)successBlock errorBlock:(BlockError)errorBlock;
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Disconnect current device
|
129
|
+
*/
|
130
|
+
-(void)commandDisconnectDevice;
|
131
|
+
@end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
//
|
2
|
+
// ABPMController.h
|
3
|
+
// iHealthSDKStatic
|
4
|
+
//
|
5
|
+
// Created by Realank on 2017/9/26.
|
6
|
+
// Copyright © 2017年 ihealthSDK. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "BPController.h"
|
10
|
+
|
11
|
+
/**
|
12
|
+
BP5C controller class
|
13
|
+
*/
|
14
|
+
@interface BP5CController : BPController
|
15
|
+
/**
|
16
|
+
* Initialize BP5C controller class
|
17
|
+
*/
|
18
|
+
+ (BP5CController *)sharedController;
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Get all BP5C instance,Access control class instance after receiving BP3LConnectNoti then use instance to call BP5C related communication methods.
|
22
|
+
*/
|
23
|
+
- (NSArray *)allConnectedInstance;
|
24
|
+
|
25
|
+
@end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
//
|
2
|
+
// BP5ViewController.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 "BPMacroFile.h"
|
11
|
+
|
12
|
+
/**
|
13
|
+
BP5 controller class
|
14
|
+
*/
|
15
|
+
@interface BP5Controller : BPController
|
16
|
+
/**
|
17
|
+
* Initialize BP5 controller class
|
18
|
+
*/
|
19
|
+
+(BP5Controller *)shareBP5Controller;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Get all BP5 instance,Access control class instance after receiving BP5ConnectNoti, then use instance to call BP5 related communication methods.
|
23
|
+
*/
|
24
|
+
-(NSArray *)getAllCurrentBP5Instace;
|
25
|
+
@end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
//
|
2
|
+
// BP5S.h
|
3
|
+
// iHealthSDKStatic
|
4
|
+
//
|
5
|
+
// Created by Realank on 2017/7/14.
|
6
|
+
// Copyright © 2017年 daiqingquan. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "BPV25Device.h"
|
10
|
+
|
11
|
+
|
12
|
+
/**
|
13
|
+
BP5S device class
|
14
|
+
*/
|
15
|
+
@interface BP5S : BPV25Device <BPBasicBTLEProtocol,BPRealtimeMeasureProtocol, BPOfflineDataTransferProtocol, BPEnableOfflineProtocol>
|
16
|
+
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Upload offline data.
|
20
|
+
* @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.
|
21
|
+
* @param totalCount item quantity of total data
|
22
|
+
* @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed.
|
23
|
+
* @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment,scheme ID,body movement flag. corresponding KEY as time, sys, dia, heartRate, irregular,schemeID,bodyMovementFlg.
|
24
|
+
* @param error error codes.
|
25
|
+
*/
|
26
|
+
-(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
|
27
|
+
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Upload offline data total Count.
|
31
|
+
* @param totalCount item quantity of total data.
|
32
|
+
* @param error A block to return the error.
|
33
|
+
*/
|
34
|
+
-(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error;
|
35
|
+
|
36
|
+
|
37
|
+
/**
|
38
|
+
* * Synchronize time and return the function and states that the device supports
|
39
|
+
* @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,the last operation status,the max memory capacity, HSD, Offline Memory, mutable Groups Upload, Self Upgrade. ‘True’ means yes or on, ‘False’ means no or off.
|
40
|
+
* @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP5S.
|
41
|
+
*/
|
42
|
+
-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error;
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Query battery remaining energy
|
46
|
+
* @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%.
|
47
|
+
* @param energyState 1:Not charging 2:charging 3:charging finish
|
48
|
+
* @param error A block to return the error in ‘Establish measurement connection’.
|
49
|
+
*/
|
50
|
+
-(void)commandEnergy:(BlockEnergyValue)energyValue energyState:(BlockEnergyState)energyState errorBlock:(BlockError)error;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Establish measurement connection and start BP measurement.
|
54
|
+
* @param blockZeroState Zeroing state
|
55
|
+
* @param pressure Pressure value in the process of measurement, the unit is ‘mmHg’.
|
56
|
+
* @param blockWaveletWithHeartbeat Wavelet data set with heart beat.
|
57
|
+
* @param blockWaveletWithoutHeartbeat Wavelet data set without heart beat.
|
58
|
+
* @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.
|
59
|
+
* @param error Return error codes.
|
60
|
+
*/
|
61
|
+
-(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result errorBlock:(BlockError)error;
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Measurement termination and stop BP 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 BP.
|
67
|
+
*/
|
68
|
+
-(void)stopBPMeassureSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error;
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Delete all offline data
|
72
|
+
* @param success The block return means delete has been terminated.
|
73
|
+
* @param error A block to return the error in ‘Establish measurement connection’ in BP.
|
74
|
+
*/
|
75
|
+
-(void)commandDeleteDataSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error;
|
76
|
+
|
77
|
+
/**
|
78
|
+
* set up offline detection
|
79
|
+
* @param open True means on; False means off.
|
80
|
+
* @param successBlock A block to refer ‘set success’.
|
81
|
+
* @param errorBlock A block to refer ‘set failed’.
|
82
|
+
*/
|
83
|
+
-(void)commandSetOffline:(BOOL)open success:(BlockSuccess)successBlock error:(BlockError)errorBlock;
|
84
|
+
|
85
|
+
/**
|
86
|
+
* set unit display
|
87
|
+
* @param UnitName mmHg, kPa
|
88
|
+
* @param setResult A block to refer ‘set success’.
|
89
|
+
* @param error A block to refer ‘set failed’.
|
90
|
+
*/
|
91
|
+
-(void)commandSetUnit:(NSString *)UnitName disposeSetReslut:(BlockSuccess)setResult errorBlock:(BlockError)error;
|
92
|
+
/**
|
93
|
+
* Disconnect current device
|
94
|
+
*/
|
95
|
+
-(void)commandDisconnectDevice;
|
96
|
+
|
97
|
+
@end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
//
|
2
|
+
// BP5SController.h
|
3
|
+
// iHealthSDKStatic
|
4
|
+
//
|
5
|
+
// Created by Realank on 2017/7/7.
|
6
|
+
// Copyright © 2017年 daiqingquan. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
#import "BPMacroFile.h"
|
11
|
+
|
12
|
+
/**
|
13
|
+
BP5S controller class
|
14
|
+
*/
|
15
|
+
@interface BP5SController : BPController
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Initialize controller class
|
19
|
+
*/
|
20
|
+
+(instancetype)sharedController;
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Get all BP5S instance,Access control class instance after receiving BP3LConnectNoti then use instance to call BP5S related communication methods.
|
24
|
+
*/
|
25
|
+
-(NSArray *)getAllCurrentInstance;
|
26
|
+
|
27
|
+
@end
|
@@ -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
|
@@ -0,0 +1,26 @@
|
|
1
|
+
//
|
2
|
+
// BP5SRWController.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 "BPMacroFile.h"
|
11
|
+
|
12
|
+
/**
|
13
|
+
BP5SRW contoller class
|
14
|
+
*/
|
15
|
+
@interface BP5SRWController : BPController
|
16
|
+
/**
|
17
|
+
* Initialize BP5SRW controller class
|
18
|
+
*/
|
19
|
+
+(BP5SRWController *)shareBP5SRWController;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Get all BP5SRW instance,Access control class instance after receiving BP5SRWConnectNoti then use instance to call BP5SRW related communication methods.
|
23
|
+
*/
|
24
|
+
-(NSArray *)getAllCurrentBP5SRWInstace;
|
25
|
+
|
26
|
+
@end
|
@@ -0,0 +1,141 @@
|
|
1
|
+
//
|
2
|
+
// BP7.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
|
+
BP7 device class
|
16
|
+
*/
|
17
|
+
@interface BP7 : BPDevice<BPBasicProtocol,BPRealtimeMeasureProtocol,BPOfflineDataTransferProtocol,BPEnableOfflineProtocol>
|
18
|
+
/**
|
19
|
+
* 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
|
20
|
+
* @param function A block to return the function and states that the device supports.
|
21
|
+
* @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP.
|
22
|
+
*/
|
23
|
+
-(void)commandFunction:(BlockDeviceFunction)function errorBlock:(BlockError)error;
|
24
|
+
|
25
|
+
/**
|
26
|
+
*set up BT auto-connection
|
27
|
+
* @param open True means on; False means off.
|
28
|
+
* @param blockBuleSet The device current statues, True means on, False means off.
|
29
|
+
* @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP.
|
30
|
+
*/
|
31
|
+
-(void)commandSetBlueConnect:(BOOL)open respond:(BlockBlueSet)blockBuleSet errorBlock:(BlockError)error;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* set up offline detection
|
35
|
+
* @param open True means on; False means off.
|
36
|
+
* @param successBlock A block to refer ‘set success’.
|
37
|
+
* @param errorBlock A block to refer ‘set failed’.
|
38
|
+
*/
|
39
|
+
-(void)commandSetOffline:(BOOL)open success:(BlockSuccess)successBlock error:(BlockError)errorBlock;
|
40
|
+
/**
|
41
|
+
* set up offline detection (Deprecated)
|
42
|
+
* @param open True means on; False means off.
|
43
|
+
* @param error A block to refer ‘error’ in ‘Establish measurement connection’ in BP.
|
44
|
+
*/
|
45
|
+
-(void)commandSetOffline:(BOOL)open errorBlock:(BlockError)error;
|
46
|
+
|
47
|
+
|
48
|
+
/**
|
49
|
+
* Query battery remaining energy
|
50
|
+
* @param energyValue A block to return the device battery remaining energy percentage, ‘80’ stands for 80%.
|
51
|
+
* @param error A block to return the error in ‘Establish measurement connection’
|
52
|
+
*/
|
53
|
+
-(void)commandEnergy:(BlockEnergyValue)energyValue errorBlock:(BlockError)error;
|
54
|
+
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Get current angle(only for BP7,This function needs to be called before the call of the start measure function)
|
58
|
+
* @param angleInfo Angle information, including angle、isLeftHand. ‘angle’ stands for the inclination angle of the device, from 0 to 90; ‘isLeftHand’ stands for the judgment if the device is on the left hand, ‘true’ means left hand, otherwise is right hand.
|
59
|
+
* @param error error codes.
|
60
|
+
* Specification:
|
61
|
+
* 1. BPError0 = 0: Unable to take measurements due to arm/wrist movements.
|
62
|
+
* 2. BPError1: Failed to detect systolic pressure.
|
63
|
+
* 3. BPError2: Failed to detect diastolic pressure.
|
64
|
+
* 4. BPError3: Pneumatic system blocked or cuff is too tight during inflation.
|
65
|
+
* 5. BPError4: Pneumatic system leakage or cuff is too loose during inflation.
|
66
|
+
* 6. BPError5: Cuff pressure reached over 300mmHg.
|
67
|
+
* 7. BPError6: Cuff pressure reached over 15 mmHg for more than 160 seconds.
|
68
|
+
* 8. BPError7: Data retrieving error.
|
69
|
+
* 9. BPError8: Data retrieving error.
|
70
|
+
* 10. BPError9: Data retrieving error.
|
71
|
+
* 11. BPError10: Data retrieving error.
|
72
|
+
* 12. BPError11: Communication Error.
|
73
|
+
* 13. BPError12: Communication Error.
|
74
|
+
* 14. BPError13: Low battery.
|
75
|
+
* 15. BPError14: Device bluetooth set failed.
|
76
|
+
* 16. BPError15: Systolic exceeds 260mmHg or diastolic exceeds 199mmHg.
|
77
|
+
* 17. BPError16: Systolic below 60mmHg or diastolic below 40mmHg.
|
78
|
+
* 18. BPError17: Arm/wrist movement beyond range.
|
79
|
+
* 19. BPNormalError=30: device error, error message displayed automatically.
|
80
|
+
* 20. BPOverTimeError: Abnormal communication.
|
81
|
+
* 21. BPNoRespondError: Abnormal communication.
|
82
|
+
* 22. BPBeyondRangeError: device is out of communication range.
|
83
|
+
* 23. BPDidDisconnect: device is disconnected.
|
84
|
+
* 24. BPAskToStopMeasure: measurement has been stopped.
|
85
|
+
* 25. BPInputParameterError=400: Parameter input error.
|
86
|
+
*/
|
87
|
+
-(void)commandStartGetAngle:(BlockAngle)angleInfo errorBlock:(BlockError)error;
|
88
|
+
|
89
|
+
/*
|
90
|
+
* Measurement start(only for BP7). When ‘angle’ is between 10-30, measurement starts
|
91
|
+
* @param blockZeroState Zeroing state
|
92
|
+
* @param Pressure Pressure value in the process of measurement, the unit is ‘mmHg’.
|
93
|
+
* @param blockWaveletWithHeartbeat Wavelet data set with heart beat.
|
94
|
+
* @param blockWaveletWithoutHeartbeat Wavelet data set without heart beat.
|
95
|
+
* @param Result result including systolic pressure, diastolic pressure, pulse rate and irregular judgment. Relevant key: time, sys, dia, heartRate, irregular. irregular will be 0 or 1.
|
96
|
+
* @param error error codes.
|
97
|
+
* Specification:
|
98
|
+
* 1. BPNormalError: device error, error message displayed automatically.
|
99
|
+
* 2. BPOverTimeError: communication over time error.
|
100
|
+
* 3. BPNoRespondError: abnormal communication.
|
101
|
+
* 4. BPBeyondRangeError: device is out of communication range.
|
102
|
+
* 5. BPDidDisconnect: device is disconnected.
|
103
|
+
* 6. BPAskToStopMeasure: measurement has been stopped.
|
104
|
+
*/
|
105
|
+
|
106
|
+
-(void)commandStartMeasureWithZeroingState:(BlockZero)blockZeroState pressure:(BlockPressure)pressure waveletWithHeartbeat:(BlockWavelet)blockWaveletWithHeartbeat waveletWithoutHeartbeat:(BlockWavelet)blockWaveletWithoutHeartbeat result:(BlockMeasureResult)result errorBlock:(BlockError)error;
|
107
|
+
|
108
|
+
/**
|
109
|
+
* upload offline data (Deprecated)
|
110
|
+
* @param totalCount item quantity of total data.
|
111
|
+
* @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed.
|
112
|
+
* @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment. corresponding KEYs are time, sys, dia, heartRate, irregular.
|
113
|
+
* @param error refer ‘error’ in ‘Establish measurement connection’ in BP.
|
114
|
+
*/
|
115
|
+
-(void)commandBatchUpload:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
|
116
|
+
|
117
|
+
/**
|
118
|
+
* Upload offline data total Count.
|
119
|
+
* @param totalCount item quantity of total data.
|
120
|
+
* @param error A block to return the error.
|
121
|
+
*/
|
122
|
+
-(void)commandTransferMemoryTotalCount:(BlockBachCount)totalCount errorBlock:(BlockError)error;
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Upload offline data.
|
126
|
+
* @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.
|
127
|
+
* @param totalCount item quantity of total data
|
128
|
+
* @param progress upload completion ratio , from 0.0 to 1.0 or 0%~100%, 100% means upload completed.
|
129
|
+
* @param uploadDataArray offline data set, including measurement time, systolic pressure, diastolic pressure, pulse rate, irregular judgment,scheme ID,body movement flag. corresponding KEYs are time, sys, dia, heartRate, irregular,schemeID,bodyMovementFlg.
|
130
|
+
* @param error A block to return the error.
|
131
|
+
*/
|
132
|
+
-(void)commandTransferMemoryDataWithTotalCount:(BlockBachCount)totalCount progress:(BlockBachProgress)progress dataArray:(BlockBachArray)uploadDataArray errorBlock:(BlockError)error;
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Measurement termination and stop BP measurement
|
136
|
+
* @param success The block return means measurement has been terminated.
|
137
|
+
* @param error A block to return the error in ‘Establish measurement connection’ in BP.
|
138
|
+
*/
|
139
|
+
-(void)stopBPMeassureSuccessBlock:(BlockSuccess)success errorBlock:(BlockError)error;
|
140
|
+
|
141
|
+
@end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
//
|
2
|
+
// BP7Controller.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 "BPMacroFile.h"
|
11
|
+
|
12
|
+
/**
|
13
|
+
BP7 controller class
|
14
|
+
*/
|
15
|
+
@interface BP7Controller : BPController
|
16
|
+
/**
|
17
|
+
* Initialize BP7 controller class
|
18
|
+
*/
|
19
|
+
+(BP7Controller *)shareBP7Controller;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Get all BP7 instance,Access control class instance after receiving BP7ConnectNoti, then use instance to call BP7 related communication methods.
|
23
|
+
*/
|
24
|
+
-(NSArray *)getAllCurrentBP7Instace;
|
25
|
+
@end
|