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.
Files changed (178) hide show
  1. package/CapacitorPluginIhealth.podspec +35 -0
  2. package/README.md +214 -0
  3. package/android/build.gradle +58 -0
  4. package/android/src/main/AndroidManifest.xml +2 -0
  5. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealth.java +11 -0
  6. package/android/src/main/java/com/managemyhealth/plugins/ihealth/ihealthPlugin.java +22 -0
  7. package/android/src/main/res/.gitkeep +0 -0
  8. package/dist/docs.json +450 -0
  9. package/dist/esm/definitions.d.ts +29 -0
  10. package/dist/esm/definitions.js +2 -0
  11. package/dist/esm/definitions.js.map +1 -0
  12. package/dist/esm/index.d.ts +4 -0
  13. package/dist/esm/index.js +7 -0
  14. package/dist/esm/index.js.map +1 -0
  15. package/dist/esm/web.d.ts +37 -0
  16. package/dist/esm/web.js +42 -0
  17. package/dist/esm/web.js.map +1 -0
  18. package/dist/plugin.cjs.js +58 -0
  19. package/dist/plugin.cjs.js.map +1 -0
  20. package/dist/plugin.js +61 -0
  21. package/dist/plugin.js.map +1 -0
  22. package/ios/Plugin/Info.plist +24 -0
  23. package/ios/Plugin/Plugin-Bridging-Header.h +35 -0
  24. package/ios/Plugin/iHealthSDKHeaders/ABI.h +82 -0
  25. package/ios/Plugin/iHealthSDKHeaders/ABIController.h +28 -0
  26. package/ios/Plugin/iHealthSDKHeaders/ABPM.h +144 -0
  27. package/ios/Plugin/iHealthSDKHeaders/ABPMController.h +25 -0
  28. package/ios/Plugin/iHealthSDKHeaders/AM3.h +188 -0
  29. package/ios/Plugin/iHealthSDKHeaders/AM3Controller.h +29 -0
  30. package/ios/Plugin/iHealthSDKHeaders/AM3SController_V2.h +29 -0
  31. package/ios/Plugin/iHealthSDKHeaders/AM3S_V2.h +227 -0
  32. package/ios/Plugin/iHealthSDKHeaders/AM4.h +223 -0
  33. package/ios/Plugin/iHealthSDKHeaders/AM4Controller.h +31 -0
  34. package/ios/Plugin/iHealthSDKHeaders/AM5.h +335 -0
  35. package/ios/Plugin/iHealthSDKHeaders/AM5Controller.h +30 -0
  36. package/ios/Plugin/iHealthSDKHeaders/AM5Header.h +20 -0
  37. package/ios/Plugin/iHealthSDKHeaders/AMHeader.h +27 -0
  38. package/ios/Plugin/iHealthSDKHeaders/AMMacroFile.h +1171 -0
  39. package/ios/Plugin/iHealthSDKHeaders/BG1.h +53 -0
  40. package/ios/Plugin/iHealthSDKHeaders/BG1Controller.h +46 -0
  41. package/ios/Plugin/iHealthSDKHeaders/BG1S.h +64 -0
  42. package/ios/Plugin/iHealthSDKHeaders/BG1SController.h +25 -0
  43. package/ios/Plugin/iHealthSDKHeaders/BG3.h +83 -0
  44. package/ios/Plugin/iHealthSDKHeaders/BG3Controller.h +28 -0
  45. package/ios/Plugin/iHealthSDKHeaders/BG5.h +158 -0
  46. package/ios/Plugin/iHealthSDKHeaders/BG5Controller.h +28 -0
  47. package/ios/Plugin/iHealthSDKHeaders/BG5S.h +294 -0
  48. package/ios/Plugin/iHealthSDKHeaders/BG5SController.h +29 -0
  49. package/ios/Plugin/iHealthSDKHeaders/BGController.h +32 -0
  50. package/ios/Plugin/iHealthSDKHeaders/BGDevice.h +42 -0
  51. package/ios/Plugin/iHealthSDKHeaders/BGHeader.h +23 -0
  52. package/ios/Plugin/iHealthSDKHeaders/BGMacroFile.h +507 -0
  53. package/ios/Plugin/iHealthSDKHeaders/BP3.h +77 -0
  54. package/ios/Plugin/iHealthSDKHeaders/BP3Controller.h +27 -0
  55. package/ios/Plugin/iHealthSDKHeaders/BP3L.h +58 -0
  56. package/ios/Plugin/iHealthSDKHeaders/BP3LController.h +30 -0
  57. package/ios/Plugin/iHealthSDKHeaders/BP5.h +32 -0
  58. package/ios/Plugin/iHealthSDKHeaders/BP5C.h +131 -0
  59. package/ios/Plugin/iHealthSDKHeaders/BP5CController.h +25 -0
  60. package/ios/Plugin/iHealthSDKHeaders/BP5Controller.h +25 -0
  61. package/ios/Plugin/iHealthSDKHeaders/BP5S.h +97 -0
  62. package/ios/Plugin/iHealthSDKHeaders/BP5SController.h +27 -0
  63. package/ios/Plugin/iHealthSDKHeaders/BP5SRW.h +101 -0
  64. package/ios/Plugin/iHealthSDKHeaders/BP5SRWController.h +26 -0
  65. package/ios/Plugin/iHealthSDKHeaders/BP7.h +141 -0
  66. package/ios/Plugin/iHealthSDKHeaders/BP7Controller.h +25 -0
  67. package/ios/Plugin/iHealthSDKHeaders/BP7S.h +106 -0
  68. package/ios/Plugin/iHealthSDKHeaders/BP7SController.h +32 -0
  69. package/ios/Plugin/iHealthSDKHeaders/BPAV10Device.h +15 -0
  70. package/ios/Plugin/iHealthSDKHeaders/BPBTLEDevice.h +17 -0
  71. package/ios/Plugin/iHealthSDKHeaders/BPBV10Device.h +20 -0
  72. package/ios/Plugin/iHealthSDKHeaders/BPContinua.h +56 -0
  73. package/ios/Plugin/iHealthSDKHeaders/BPContinuaController.h +30 -0
  74. package/ios/Plugin/iHealthSDKHeaders/BPController.h +40 -0
  75. package/ios/Plugin/iHealthSDKHeaders/BPDevice.h +131 -0
  76. package/ios/Plugin/iHealthSDKHeaders/BPHeader.h +54 -0
  77. package/ios/Plugin/iHealthSDKHeaders/BPLoopMeasureSettingModel.h +120 -0
  78. package/ios/Plugin/iHealthSDKHeaders/BPM1AE.h +80 -0
  79. package/ios/Plugin/iHealthSDKHeaders/BPMacroFile.h +247 -0
  80. package/ios/Plugin/iHealthSDKHeaders/BPV24Device.h +16 -0
  81. package/ios/Plugin/iHealthSDKHeaders/BPV25Device.h +17 -0
  82. package/ios/Plugin/iHealthSDKHeaders/ConnectDeviceController.h +27 -0
  83. package/ios/Plugin/iHealthSDKHeaders/DFUController.h +160 -0
  84. package/ios/Plugin/iHealthSDKHeaders/DFUDeviceFirmwareInfo.h +56 -0
  85. package/ios/Plugin/iHealthSDKHeaders/DFUHeader.h +19 -0
  86. package/ios/Plugin/iHealthSDKHeaders/DFUMacro.h +264 -0
  87. package/ios/Plugin/iHealthSDKHeaders/DFUServerFirmwareInfo.h +48 -0
  88. package/ios/Plugin/iHealthSDKHeaders/ECG3.h +94 -0
  89. package/ios/Plugin/iHealthSDKHeaders/ECG3Controller.h +30 -0
  90. package/ios/Plugin/iHealthSDKHeaders/ECG3USB.h +145 -0
  91. package/ios/Plugin/iHealthSDKHeaders/ECG3USBController.h +31 -0
  92. package/ios/Plugin/iHealthSDKHeaders/ECGHeader.h +20 -0
  93. package/ios/Plugin/iHealthSDKHeaders/ECGMacroFile.h +84 -0
  94. package/ios/Plugin/iHealthSDKHeaders/HFSmartLink.h +88 -0
  95. package/ios/Plugin/iHealthSDKHeaders/HFSmartLinkDeviceInfo.h +14 -0
  96. package/ios/Plugin/iHealthSDKHeaders/HS2.h +64 -0
  97. package/ios/Plugin/iHealthSDKHeaders/HS2Controller.h +25 -0
  98. package/ios/Plugin/iHealthSDKHeaders/HS2S.h +399 -0
  99. package/ios/Plugin/iHealthSDKHeaders/HS2SController.h +27 -0
  100. package/ios/Plugin/iHealthSDKHeaders/HS3.h +63 -0
  101. package/ios/Plugin/iHealthSDKHeaders/HS3Controller.h +32 -0
  102. package/ios/Plugin/iHealthSDKHeaders/HS4.h +64 -0
  103. package/ios/Plugin/iHealthSDKHeaders/HS4Controller.h +26 -0
  104. package/ios/Plugin/iHealthSDKHeaders/HS5.h +141 -0
  105. package/ios/Plugin/iHealthSDKHeaders/HS5Controller.h +38 -0
  106. package/ios/Plugin/iHealthSDKHeaders/HSHeader.h +25 -0
  107. package/ios/Plugin/iHealthSDKHeaders/HSMacroFile.h +709 -0
  108. package/ios/Plugin/iHealthSDKHeaders/HealthHeader.h +67 -0
  109. package/ios/Plugin/iHealthSDKHeaders/HealthUser.h +126 -0
  110. package/ios/Plugin/iHealthSDKHeaders/IDOBindEnum.h +49 -0
  111. package/ios/Plugin/iHealthSDKHeaders/IDOBlueDataResponse.h +66 -0
  112. package/ios/Plugin/iHealthSDKHeaders/IDOBlueEnum.h +213 -0
  113. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothBaseModel.h +112 -0
  114. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothEngine.h +283 -0
  115. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothManager.h +166 -0
  116. package/ios/Plugin/iHealthSDKHeaders/IDOBluetoothServices.h +75 -0
  117. package/ios/Plugin/iHealthSDKHeaders/IDOCalculateBluetoothModel.h +263 -0
  118. package/ios/Plugin/iHealthSDKHeaders/IDOCommonMacro.h +89 -0
  119. package/ios/Plugin/iHealthSDKHeaders/IDODataExchangeModel.h +128 -0
  120. package/ios/Plugin/iHealthSDKHeaders/IDODataMigrationManager.h +79 -0
  121. package/ios/Plugin/iHealthSDKHeaders/IDOErrorCodeToStr.h +19 -0
  122. package/ios/Plugin/iHealthSDKHeaders/IDOFoundationCommand.h +1178 -0
  123. package/ios/Plugin/iHealthSDKHeaders/IDOGetInfoBluetoothModel.h +1924 -0
  124. package/ios/Plugin/iHealthSDKHeaders/IDOLogEnum.h +165 -0
  125. package/ios/Plugin/iHealthSDKHeaders/IDOPeripheralModel.h +59 -0
  126. package/ios/Plugin/iHealthSDKHeaders/IDORecordDeviceLog.h +56 -0
  127. package/ios/Plugin/iHealthSDKHeaders/IDOSetInfoBluetoothModel.h +1760 -0
  128. package/ios/Plugin/iHealthSDKHeaders/IDOSyncActivityDataModel.h +207 -0
  129. package/ios/Plugin/iHealthSDKHeaders/IDOSyncBpDataModel.h +191 -0
  130. package/ios/Plugin/iHealthSDKHeaders/IDOSyncEnum.h +316 -0
  131. package/ios/Plugin/iHealthSDKHeaders/IDOSyncGpsDataModel.h +133 -0
  132. package/ios/Plugin/iHealthSDKHeaders/IDOSyncHeartRateDataModel.h +442 -0
  133. package/ios/Plugin/iHealthSDKHeaders/IDOSyncManager.h +161 -0
  134. package/ios/Plugin/iHealthSDKHeaders/IDOSyncPressureDataModel.h +158 -0
  135. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSleepDataModel.h +224 -0
  136. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSpo2DataModel.h +175 -0
  137. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSportDataModel.h +221 -0
  138. package/ios/Plugin/iHealthSDKHeaders/IDOSyncSwimDataModel.h +188 -0
  139. package/ios/Plugin/iHealthSDKHeaders/IDOTranEnum.h +93 -0
  140. package/ios/Plugin/iHealthSDKHeaders/IDOTransferFileManager.h +116 -0
  141. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialInfoModel.h +95 -0
  142. package/ios/Plugin/iHealthSDKHeaders/IDOWatchDialManager.h +75 -0
  143. package/ios/Plugin/iHealthSDKHeaders/IDOWeightBluetoothModel.h +124 -0
  144. package/ios/Plugin/iHealthSDKHeaders/IHSDKCloudUser.h +104 -0
  145. package/ios/Plugin/iHealthSDKHeaders/KN550BT.h +115 -0
  146. package/ios/Plugin/iHealthSDKHeaders/KN550BTController.h +32 -0
  147. package/ios/Plugin/iHealthSDKHeaders/ManageDeviceController.h +34 -0
  148. package/ios/Plugin/iHealthSDKHeaders/NT13B.h +33 -0
  149. package/ios/Plugin/iHealthSDKHeaders/NT13BController.h +28 -0
  150. package/ios/Plugin/iHealthSDKHeaders/NT13BHeader.h +16 -0
  151. package/ios/Plugin/iHealthSDKHeaders/NT13BMacroFile.h +34 -0
  152. package/ios/Plugin/iHealthSDKHeaders/PO1.h +82 -0
  153. package/ios/Plugin/iHealthSDKHeaders/PO1Controller.h +29 -0
  154. package/ios/Plugin/iHealthSDKHeaders/PO3.h +96 -0
  155. package/ios/Plugin/iHealthSDKHeaders/PO3Controller.h +29 -0
  156. package/ios/Plugin/iHealthSDKHeaders/POHeader.h +20 -0
  157. package/ios/Plugin/iHealthSDKHeaders/POMacroFile.h +142 -0
  158. package/ios/Plugin/iHealthSDKHeaders/PT3SBT.h +167 -0
  159. package/ios/Plugin/iHealthSDKHeaders/PT3SBTController.h +27 -0
  160. package/ios/Plugin/iHealthSDKHeaders/PT3SBTMacroFile.h +92 -0
  161. package/ios/Plugin/iHealthSDKHeaders/SDKFlowUpdateDevice.h +196 -0
  162. package/ios/Plugin/iHealthSDKHeaders/SDKInfo.h +30 -0
  163. package/ios/Plugin/iHealthSDKHeaders/SDKUpdateDevice.h +235 -0
  164. package/ios/Plugin/iHealthSDKHeaders/ScanDeviceController.h +47 -0
  165. package/ios/Plugin/iHealthSDKHeaders/THV3.h +104 -0
  166. package/ios/Plugin/iHealthSDKHeaders/THV3Controller.h +30 -0
  167. package/ios/Plugin/iHealthSDKHeaders/THV3Macro.h +17 -0
  168. package/ios/Plugin/iHealthSDKHeaders/TS28B.h +26 -0
  169. package/ios/Plugin/iHealthSDKHeaders/TS28BController.h +142 -0
  170. package/ios/Plugin/iHealthSDKHeaders/TS28BHeader.h +15 -0
  171. package/ios/Plugin/iHealthSDKHeaders/iHealthHS6.h +174 -0
  172. package/ios/Plugin/ihealth.swift +8 -0
  173. package/ios/Plugin/ihealthPlugin.h +10 -0
  174. package/ios/Plugin/ihealthPlugin.m +16 -0
  175. package/ios/Plugin/ihealthPlugin.swift +1502 -0
  176. package/ios/Plugin/libiHealthSDK2.7.8.a +0 -0
  177. package/ios/Plugin/test.m +9 -0
  178. package/package.json +78 -0
@@ -0,0 +1,335 @@
1
+ //
2
+ // AM5.h
3
+ // iHealthSDKStatic
4
+ //
5
+ // Created by user on 2019/7/2.
6
+ // Copyright © 2019 ihealthSDK. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "AM5Header.h"
11
+ #import "AMMacroFile.h"
12
+
13
+ @interface AM5 : NSObject
14
+
15
+ @property (strong, nonatomic) NSString *currentUUID;
16
+ @property (strong, nonatomic) NSString *serialNumber;
17
+
18
+
19
+ /**
20
+ *BindingDevice
21
+
22
+ * @param bindingResult YES:success NO:failed
23
+ * @param disposeErrorBlock error code
24
+ */
25
+ -(void)commandBindingDevice:(DisposeBindingAM5Result)bindingResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
26
+
27
+ /**
28
+ *UnBindingDevice
29
+
30
+ * @param unbindingResult YES:success NO:failed
31
+ * @param disposeErrorBlock error code
32
+ */
33
+ -(void)commandUnBindingDevice:(DisposeUnBindingAM5Result)unbindingResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
34
+ /**
35
+ * GetDeviceInfo
36
+
37
+ * @param deviceInfo
38
+ This dictionary includes key:
39
+ Mode:Device mode BatteryStatus:Battery status BatteryLevel:Battery level RebootFlag:Whether to restart BindTimeStr:Binding timestamp BindState:Binding status
40
+ * @param disposeErrorBlock error code
41
+ */
42
+ -(void)commandGetDeviceInfo:(DisposeGetAM5DeviceInfo)deviceInfo DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
43
+ /**
44
+ * Get functional information
45
+
46
+ * @param deviceFunctionalInfo
47
+ This dictionary includes key:
48
+ Steps:Number of steps
49
+ SleepDetection:Sleep detection
50
+ SingleMovement:Single movement
51
+ LiveData:Real-time data
52
+ Update:Equipment Update
53
+ HeartRate:Heart rate function
54
+ Notification:Notification Center
55
+ Timeline:Timeline
56
+ * @param disposeErrorBlock error code
57
+ */
58
+ -(void)commandGetFuncTable:(DisposeGetAM5FuncTable)deviceFunctionalInfo DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
59
+ /**
60
+ * GetDeviceMac
61
+
62
+ * @param deviceMac This is the MAC for the device
63
+ * @param disposeErrorBlock error code
64
+ */
65
+ -(void)commandGetDeviceMac:(DisposeGetAM5Mac)deviceMac DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
66
+
67
+ /**
68
+ * GetLiveData
69
+
70
+ * @param liveData
71
+ This dictionary includes key:
72
+ Step:Step count Calorie:Calorie Distances:distance ActiveTime:Duration of activity HeartRate:Heart rate
73
+ * @param disposeErrorBlock error code
74
+ */
75
+ -(void)commandGetLiveData:(DisposeGetAM5LiveData)liveData DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
76
+
77
+ /**
78
+ * GetActivityCount
79
+
80
+ * @param activityCount
81
+
82
+ This dictionary includes key:
83
+
84
+ ActivityCount:Number of activities ActivityPacketCount:Number of active packages GpsCount:Number of GPS data GpsPacketCount:Number of GPS packets
85
+
86
+ * @param disposeErrorBlock error code
87
+ */
88
+ -(void)commandGetActivityCount:(DisposeGetAM5ActivityCount)activityCount DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
89
+
90
+ /**
91
+ * setCurrentTime
92
+ * @param setCurrentTime Synchronizes the current time to the device YES:success NO:failed
93
+ * @param disposeErrorBlock error code
94
+ */
95
+ -(void)commandSetCurrentTime:(DisposeAM5SetCurrentTime)setCurrentTime DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
96
+
97
+ /**
98
+ * setAlarm
99
+ * @param alarm
100
+ example code:
101
+ IDOSetAlarmInfoBluetoothModel * alarmModel= [IDOSetAlarmInfoBluetoothModel currentModel];
102
+ switch alarmModel.isOpen
103
+ Whether the synchronization alarmModel.isSync
104
+ Whether or not to delete alarmModel.isDelete
105
+ Type alarmModel.type
106
+ Hour alarmModel.hour
107
+ Minute alarmModel.minute
108
+ Repeat alarmModel.repeat
109
+ TsnoozeDuration alarmModel.tsnoozeDuration
110
+ AlarmId alarmModel.alarmId
111
+
112
+ * @param setAlarmResult YES:success NO:failed
113
+ * @param disposeErrorBlock error code
114
+ */
115
+ -(void)commandSetAlarm:(IDOSetAlarmInfoBluetoothModel*)alarm setResult:(DisposeAM5SetAlarm)setAlarmResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
116
+
117
+ /**
118
+ * SetUserTarget
119
+ * @param target
120
+ example code:
121
+ IDOSetUserInfoBuletoothModel * userModel= [IDOSetUserInfoBuletoothModel currentModel];
122
+ Target sleep time(hour) userModel.goalSleepDataHour
123
+ Target sleep time(minutes) userModel.goalSleepDataMinute
124
+ Target steps userModel.goalStepData
125
+ Target Calorie userModel.goalCalorieData
126
+ Target Distance userModel.goalDistanceData
127
+ Target Weight userModel.goalWeightData
128
+ Target type userModel.goalType (type: 0: steps 1: calories 2: distance) setting a type of target requires executing a command once
129
+
130
+ * @param setUserTargetResult YES:success NO:failed
131
+ * @param disposeErrorBlock error code
132
+ */
133
+ -(void)commandSetUserTarget:(IDOSetUserInfoBuletoothModel*)target setResult:(DisposeAM5SetUserTarget)setUserTargetResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
134
+
135
+ /**
136
+ * SetUserInfo
137
+ @param userInfo
138
+ example code:
139
+ IDOSetUserInfoBuletoothModel * userModel= [IDOSetUserInfoBuletoothModel currentModel];
140
+ height userModel.height
141
+ weight userModel.weight
142
+ gender userModel.gender Gender 1: male 2: female
143
+ year userModel.year
144
+ month userModel.month
145
+ day userModel.day
146
+
147
+ * @param setUserInfoResult YES:success NO:failed
148
+ * @param disposeErrorBlock error code
149
+ */
150
+ -(void)commandSetUserInfo:(IDOSetUserInfoBuletoothModel*)userInfo setResult:(DisposeAM5SetUserInfo)setUserInfoResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
151
+
152
+ /**
153
+ * SetUnit
154
+ @param unit
155
+ example code:
156
+ IDOSetUnitInfoBluetoothModel * unitInfo = [IDOSetUnitInfoBluetoothModel currentModel];
157
+ From the unit unitInfo.distanceUnit 0x00: invalid, 0x01:km, 0x02:mi
158
+ Unit of weight unitInfo.weightUnit 0x00: invalid, 0x01:kg, 0x02:lb, 0x03: st
159
+ Temperature of the unit unitInfo.tempUnit 0x00: invalid, 0 x01: ° C, 0 x02: ° F
160
+ The language unit unitInfo.languageUnit (Invalid :0, Chinese :1, English :2, French :3, German :4, Italian :5, Spanish :6, Japanese :7,Polish :8, Czech :9, Romania :10, Lithuanian :11, Dutch :12, Slovenia :13,Hungarian :14, Russian :15, Ukrainian :16, slovak :17, Danish :18, Croatian :19)
161
+ Walking pace unitInfo.strideWalk Convert to the default value of 90 for men (unit: cm)
162
+ Running pace unitInfo.strideRun According to the default value of male conversion 72 (unit: cm)
163
+ GPS calibration step size unitInfo.strideGps 0x00: invalid, 0x01: on, 0x02: off
164
+ Unit of time unitInfo.timeUnit 0x00: invalid, 0x01:24 hours, 0x02: 12 hours
165
+ The beginning of the week unitInfo.weekStart (Sunday: 0, Monday: 1, Tuesday: 2, Wednesday: 3, Thursday: 4, Friday: 5, Saturday: 6)
166
+
167
+ * @param setUnitResult YES:success NO:failed
168
+ * @param disposeErrorBlock error code
169
+ */
170
+ -(void)commandSetUnit:(IDOSetUnitInfoBluetoothModel*)unit setResult:(DisposeAM5SetUnit)setUnitResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
171
+
172
+ /**
173
+ * SetLongSit
174
+ @param longSit
175
+ example code:
176
+ IDOSetLongSitInfoBuletoothModel * SitInfo = [IDOSetLongSitInfoBuletoothModel currentModel];
177
+
178
+ interval SitInfo.interval
179
+ Start(Hour) SitInfo.startHour
180
+ Start(minutes) SitInfo.startMinute
181
+ End(Hour) SitInfo.endHour
182
+ End(minutes) SitInfo.endMinute
183
+ Switch SitInfo.isOpen
184
+
185
+ * @param setLongSitResult YES:success NO:failed
186
+ * @param disposeErrorBlock error code
187
+ */
188
+ -(void)commandSetLongSit:(IDOSetLongSitInfoBuletoothModel*)longSit setResult:(DisposeAM5SetLongSit)setLongSitResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
189
+
190
+
191
+ /**
192
+ * SetLeftRightHand
193
+ @param leftRightHand
194
+ example code:
195
+ IDOSetLeftOrRightInfoBuletoothModel * leftOrRightModel = [IDOSetLeftOrRightInfoBuletoothModel currentModel];
196
+
197
+ Whether to wear right hand leftOrRightModel.isRight 0:left 1:right
198
+
199
+ * @param setLeftRightHandResult YES:success NO:failed
200
+ * @param disposeErrorBlock error code
201
+ */
202
+ -(void)commandSetLeftRightHand:(IDOSetLeftOrRightInfoBuletoothModel*)leftRightHand setResult:(DisposeAM5SetLeftRightHand)setLeftRightHandResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
203
+
204
+ /**
205
+ * SetHrInterval
206
+ @param hrInterval
207
+ example code:
208
+ IDOSetHrIntervalInfoBluetoothModel * hrIntervalInfo = [IDOSetHrIntervalInfoBluetoothModel currentModel];
209
+
210
+ Fat burning threshold hrIntervalInfo.burnFat
211
+ Aerobic threshold hrIntervalInfo.aerobic
212
+ Threshold limit hrIntervalInfo.limitValue
213
+ Maximum heart rate hrIntervalInfo.userMaxHr
214
+
215
+ * @param setHrIntervalResult YES:success NO:failed
216
+ * @param disposeErrorBlock error code
217
+ */
218
+ -(void)commandSetHrInterval:(IDOSetHrIntervalInfoBluetoothModel*)hrInterval setResult:(DisposeAM5SetHrInterval)setHrIntervalResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
219
+
220
+ /**
221
+ * SetHrMode
222
+ @param hrMode
223
+ example code:
224
+ IDOSetHrModeInfoBluetoothModel * hrModeInfo = [IDOSetHrModeInfoBluetoothModel currentModel];
225
+ Heart rate pattern hrModeInfo.modeType 0: turn off heart rate monitoring function 1: manual mode 2: automatic mode (default: automatic mode)
226
+ Is there an interval hrModeInfo.isHasTimeRange
227
+ Start(Hour) hrModeInfo.startHour
228
+ Start(minutes) hrModeInfo.startMinute
229
+ End(Hour) hrModeInfo.endHour
230
+ End(minutes) hrModeInfo.endMinute
231
+
232
+ * @param setHrModeResult YES:success NO:failed
233
+ * @param disposeErrorBlock error code
234
+ */
235
+ -(void)commandSetHrMode:(IDOSetHrModeInfoBluetoothModel*)hrMode setResult:(DisposeAM5SetHrMode)setHrModeResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
236
+
237
+ /**
238
+ * SetNoDisturbMode
239
+ @param noDisturbMode
240
+ example code:
241
+ IDOSetNoDisturbModeInfoBluetoothModel * noDisturbModeInfo = [IDOSetNoDisturbModeInfoBluetoothModel currentModel];
242
+
243
+ Is there an interval noDisturbModeInfo.isOpen
244
+ Start(Hour) noDisturbModeInfo.startHour
245
+ Start(minutes) noDisturbModeInfo.startMinute
246
+ End(Hour) noDisturbModeInfo.endHour
247
+ End(minutes) noDisturbModeInfo.endMinute
248
+
249
+ * @param setNoDisturbModeResult YES:success NO:failed
250
+ * @param disposeErrorBlock error code
251
+ */
252
+ -(void)commandSetNoDisturbMode:(IDOSetNoDisturbModeInfoBluetoothModel*)noDisturbMode setResult:(DisposeAM5SetNoDisturbMode)setNoDisturbModeResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
253
+ /**
254
+ * SetSportModeSelect
255
+ @param sportModeSelect
256
+ example code:
257
+ IDOSetSportShortcutInfoBluetoothModel * sportShortcutInfo = [IDOSetSportShortcutInfoBluetoothModel currentModel];
258
+ sportShortcutInfo.isWalk
259
+ sportShortcutInfo.isRun
260
+ sportShortcutInfo.isByBike
261
+ sportShortcutInfo.isOnFoot
262
+ sportShortcutInfo.isMountainClimbing
263
+ sportShortcutInfo.isBadminton
264
+ sportShortcutInfo.isSpinning
265
+ sportShortcutInfo.isTreadmill
266
+ sportShortcutInfo.isFitness
267
+ sportShortcutInfo.isYoga
268
+ sportShortcutInfo.isBasketball
269
+ sportShortcutInfo.isTennis
270
+ sportShortcutInfo.isDance
271
+ sportShortcutInfo.isFootball
272
+
273
+ * @param setSportModeSelectResult YES:success NO:failed
274
+ * @param disposeErrorBlock error code
275
+ */
276
+ -(void)commandSetSportModeSelect:(IDOSetSportShortcutInfoBluetoothModel*)sportModeSelect setResult:(DisposeAM5SetSportModeSelect)setSportModeSelectResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
277
+
278
+ /**
279
+ * SetSwitchNotice
280
+ @param switchNotice
281
+ example code:
282
+ IDOSetNoticeInfoBuletoothModel* noticeInfo = [IDOSetNoticeInfoBuletoothModel currentModel];
283
+ noticeInfo.isPairing
284
+ noticeInfo.isOnChild
285
+ * @param setSwitchNoticeResult YES:success NO:failed
286
+ * @param disposeErrorBlock error code
287
+ */
288
+ -(void)commandSetSwitchNotice:(IDOSetNoticeInfoBuletoothModel*)switchNotice setResult:(DisposeAM5SetSwitchNotice)setSwitchNoticeResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
289
+
290
+ /**
291
+ * syncConfigComplete
292
+
293
+ * @param syncConfigCompleteResult YES:success NO:failed
294
+ * @param disposeErrorBlock error code
295
+ */
296
+ -(void)commandSyncConfigComplete:(DisposeGetAM5SyncConfigComplete)syncConfigCompleteResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
297
+
298
+ /**
299
+ * syncData
300
+
301
+ * @param heartRateData heartRateData
302
+ * @param sleepData sleepData
303
+ * @param activityData activityData
304
+ * @param syncprogress data progress
305
+ * @param syncDataSuccess sync finish
306
+ * @param disposeErrorBlock error code
307
+ */
308
+ -(void)commandSyncData:(DisposeGetAM5SyncHeartRateData)heartRateData syncSleepData:(DisposeGetAM5SyncSleepData)sleepData syncActivityData:(DisposeGetAM5SyncActivityData)activityData syncDataProgress:(DisposeAM5SyncDataProgress)syncprogress syncDataSuccess:(DisposeAM5SyncDataSuccess)syncDataSuccess DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
309
+
310
+ /**
311
+ * setAppReboot
312
+
313
+ * @param setAppRebootResult YES:success NO:failed
314
+ * @param disposeErrorBlock error code
315
+ */
316
+ -(void)commandSetAppReboot:(DisposeAM5SetAppReboot)setAppRebootResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
317
+
318
+ /**
319
+ * SetHandUp
320
+ @param setHandUp
321
+ example code:
322
+ IDOSetHandUpInfoBuletoothModel * handUpModel= [IDOSetHandUpInfoBuletoothModel currentModel];
323
+ handUpModel.isOpen YES:open NO:close
324
+ * @param setHandUpResult YES:success NO:failed
325
+ * @param disposeErrorBlock error code
326
+ */
327
+ -(void)commandSetHandUp:(IDOSetHandUpInfoBuletoothModel*)setHandUp setResult:(DisposeAM5SetHandUp)setHandUpResult DiaposeErrorBlock:(DisposeAM5ErrorBlock)disposeErrorBlock;
328
+
329
+ /**
330
+ * Disconnect AM5 connection.
331
+ */
332
+ -(void)commandAM5Disconnect;
333
+
334
+ @end
335
+
@@ -0,0 +1,30 @@
1
+ //
2
+ // AM5Controller.h
3
+ // iHealthSDKStatic
4
+ //
5
+ // Created by user on 2019/7/2.
6
+ // Copyright © 2019 ihealthSDK. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface AM5Controller : NSObject
14
+
15
+ /**
16
+ * Initialize AM5 controller class
17
+ */
18
+ +(AM5Controller *)shareAM5Controller;
19
+
20
+
21
+ /**
22
+ * Access control class instance after receiving AM5ConnectNoti, then use instance to call AM5 related communication methods
23
+ */
24
+ -(NSArray *)getAllCurrentAM5Instace;
25
+
26
+ -(NSMutableDictionary *)getAllDiscoverAM5Instace;
27
+
28
+ @end
29
+
30
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,20 @@
1
+ //
2
+ // AM5Header.h
3
+ // iHealthSDKStatic
4
+ //
5
+ // Created by user on 2019/7/4.
6
+ // Copyright © 2019 ihealthSDK. All rights reserved.
7
+ //
8
+
9
+ #ifndef AM5Header_h
10
+ #define AM5Header_h
11
+
12
+ #import "IDOBluetoothBaseModel.h"
13
+ #import "IDOSetInfoBluetoothModel.h"
14
+ #import "IDOBluetoothManager.h"
15
+ #import "IDOBluetoothServices.h"
16
+ #import "IDOSyncManager.h"
17
+ #import "IDOFoundationCommand.h"
18
+ #import "IDOErrorCodeToStr.h"
19
+
20
+ #endif /* AM5Header_h */
@@ -0,0 +1,27 @@
1
+ //
2
+ // AMHeader.h
3
+ // AMDemoCode
4
+ //
5
+ // Created by zhiwei jing on 14-8-12.
6
+ // Copyright (c) 2014年 zhiwei jing. All rights reserved.
7
+ //
8
+
9
+ #ifndef AMDemoCode_AMHeader_h
10
+ #define AMDemoCode_AMHeader_h
11
+
12
+ #import "AM3.h"
13
+ #import "AM3S_V2.h"
14
+ #import "AM4.h"
15
+ #import "AM5.h"
16
+ #import "AM5Controller.h"
17
+
18
+
19
+ #import "AM3Controller.h"
20
+ #import "AM3SController_V2.h"
21
+ #import "AM4Controller.h"
22
+
23
+
24
+ #import "AMMacroFile.h"
25
+ #import "HealthUser.h"
26
+
27
+ #endif