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,1178 @@
1
+ //
2
+ // IDOAllOrder.h
3
+ // VeryfitSDK
4
+ //
5
+ // Created by hedongyang on 2018/6/12.
6
+ // Copyright © 2018年 hedongyang. All rights reserved.
7
+ //
8
+
9
+
10
+
11
+ #import <Foundation/Foundation.h>
12
+ #if __has_include(<IDOBluetoothInternal/IDOBluetoothInternal.h>)
13
+ #elif __has_include(<IDOBlueProtocol/IDOBlueProtocol.h>)
14
+ #else
15
+ #import "IDOBindEnum.h"
16
+ #import "IDOBluetoothBaseModel.h"
17
+ #import "IDOGetInfoBluetoothModel.h"
18
+ #import "IDOSetInfoBluetoothModel.h"
19
+ #import "IDODataExchangeModel.h"
20
+ #endif
21
+
22
+ @interface IDOFoundationCommand : NSObject
23
+
24
+ #pragma mark ======= control Command =======
25
+
26
+ /**
27
+ 设备进入ota模式通知 | Notification of device enter ota mode
28
+ */
29
+ + (void)didOta;
30
+
31
+ /**
32
+ 设备退出ota模式通知 | Notification of device exit ota mode
33
+ */
34
+ + (void)disOta;
35
+
36
+ /**
37
+ 断开发送通知 | Disconnect notification
38
+ */
39
+ + (void)disConnect;
40
+
41
+ /**
42
+ * 连接失败通知 | connection failed
43
+ */
44
+ + (void)connectionFailed;
45
+
46
+ /**
47
+ * 发送提示消息 (只用于DH项目中) | Send prompt message (used only for DH)
48
+ */
49
+ + (void)sendPromptInformation:(NSString*_Nullable)info;
50
+
51
+ /**
52
+ * @brief 音乐开始 | Music begins
53
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
54
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
55
+ */
56
+ + (void)musicStartCommand:(void(^_Nullable)(int errorCode))callback;
57
+
58
+ /**
59
+ * @brief 音乐结束 | End of music
60
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
61
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
62
+ */
63
+ + (void)musicStopCommand:(void(^_Nullable)(int errorCode))callback;
64
+
65
+ /**
66
+ * @brief 相机开始 | Camera starts
67
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
68
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
69
+ */
70
+ + (void)cameraStartCommand:(void(^_Nullable)(int errorCode))callback;
71
+
72
+ /**
73
+ * @brief 相机结束 | Camera ends
74
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
75
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
76
+ */
77
+ + (void)cameraStopCommand:(void(^_Nullable)(int errorCode))callback;
78
+
79
+ /**
80
+ * @brief 开始寻找设备 | Start looking for equipment
81
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
82
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
83
+ */
84
+ + (void)findDeviceStartCommand:(void(^_Nullable)(int errorCode))callback;
85
+
86
+ /**
87
+ * @brief 结束寻找设备 | End finding equipment
88
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
89
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
90
+ */
91
+ + (void)findDeviceStopCommand:(void(^_Nullable)(int errorCode))callback;
92
+
93
+ /**
94
+ * @brief 打开ANCS(苹果通知中心) | Open ANCS (Apple Notification Center)
95
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
96
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
97
+ */
98
+ + (void)belOpenAncsCommand:(void(^_Nullable)(int errorCode))callback;
99
+
100
+ /**
101
+ * @brief 关闭ANCS(苹果通知中心) | Close ANCS (Apple Notification Center)
102
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
103
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
104
+ */
105
+ + (void)belCloseAncsCommand:(void(^_Nullable)(int errorCode))callback;
106
+
107
+ /**
108
+ * @brief 设备绑定 | Device Binding
109
+ * @param bindModel 绑定 model (IDOSetBindingInfoBluetoothModel) (只有在授权绑定才会存储数据)
110
+ * Binding model (IDOSetBindingInfoBluetoothModel) (Data will only be stored if the binding is authorized)
111
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
112
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
113
+ */
114
+ + (void)bindingCommand:(IDOSetBindingInfoBluetoothModel * _Nullable)bindModel
115
+ callback:(void (^_Nullable)(IDO_BIND_STATUS status, int errorCode))callback;
116
+
117
+ /**
118
+ * @brief 连线设备解绑 | Unbundling equipment
119
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
120
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
121
+ */
122
+ + (void)unbindingCommand:(void(^_Nullable)(int errorCode))callback;
123
+
124
+ /**
125
+ * @brief 解绑切换设备,但不删除手环和app数据 | switch device not delete the bracelet and app data
126
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
127
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
128
+ */
129
+ + (void)switchDeviceCommand:(void(^_Nullable)(int errorCode))callback;
130
+
131
+ /**
132
+ * @brief 设备强制解绑,设备连接时,双方解绑,设备断开时,app单方解绑 | Device forced unbundling
133
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
134
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
135
+ */
136
+ + (void)mandatoryUnbindingCommand:(void(^_Nullable)(int errorCode))callback;
137
+
138
+ /**
139
+ * @brief 手环主动解绑 | Active unbinding of the bracelet
140
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str,state:0x00:无效,0x01:手环已经解绑)
141
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr,state:0x00:invalid,0x01:bracelet has been untied)
142
+ */
143
+ + (void)braceletUnbundlingCommand:(void(^_Nullable)(int errorCode,int state))callback;
144
+
145
+ /**
146
+ * @brief 设备配置复位 | Device Configuration Reset
147
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
148
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
149
+ */
150
+ + (void)setDefaultConfigCommand:(void(^_Nullable)(int errorCode))callback;
151
+
152
+ /**
153
+ * @brief 控制设备重启(重启设备后手环会马上断线) | Control device restart (The bracelet disconnects immediately after restarting the device)
154
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
155
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
156
+ */
157
+ + (void)setAppRebootCommand:(void(^_Nullable)(int errorCode))callback;
158
+
159
+ /**
160
+ * @brief 获取扩展功能列表 | Get the list of extended features
161
+ * @param callback 执行回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
162
+ * Execute callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
163
+ */
164
+ + (void)getFuncTableExCommand:(void(^_Nullable)(int errorCode))callback;
165
+
166
+ /**
167
+ * @brief 设备进入ota升级模式 | The device enters the ota upgrade mode.
168
+ * @param callback 执行回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
169
+ * Execute callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
170
+ * state 0x00 : 成功;0x01 :电量过低;0x02 :设备不支持;0x03 :参数不正确 | 0x00: success; 0x01: low power; 0x02: device not supported; 0x03: parameter error
171
+ */
172
+ + (void)setOtaCommand:(void(^_Nullable)(int state , int errorCode))callback;
173
+
174
+ /**
175
+ * @brief 手环检查版本号 | The bracelet checks the version number.
176
+ * @param model | check update version numbder model
177
+ * @param callback 执行回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
178
+ * Execute callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
179
+ * state 0x00 : 请求成功;0x01 :发生失败;
180
+ * state 0x00: success; 0x01: failed;
181
+ */
182
+ + (void)checkUpdateReplyCommand:(IDOCheckUpdateBluetoothModel *_Nullable)model
183
+ callback:(void(^_Nullable)(int state , int errorCode))callback;
184
+
185
+ #pragma mark ======= set Command =======
186
+
187
+ /**
188
+ * @brief 设置授权码绑定 | Set Authorization Code Binding
189
+ * @param bindModel 绑定 model (IDOSetBindingInfoBluetoothModel) | binding model
190
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
191
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
192
+ */
193
+ + (void)setAuthCodeCommand:(IDOSetBindingInfoBluetoothModel * _Nullable)bindModel callback:(void(^_Nullable)(int errorCode))callback;
194
+
195
+ /**
196
+ * @brief 设置当前时间 | Set current time
197
+ * @param timeModel 时间 model (IDOSetTimeInfoBluetoothModel) | time model (IDOSetTimeInfoBluetoothModel)
198
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
199
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
200
+ */
201
+ + (void)setCurrentTimeCommand:(IDOSetTimeInfoBluetoothModel * _Nullable)timeModel callback:(void(^_Nullable)(int errorCode))callback;
202
+
203
+ /**
204
+ * @brief 设置闹钟 | Set an alarm
205
+ * @param alarmModel 闹钟 model (IDOSetAlarmInfoBluetoothModel) | Alarm clock model (IDOSetAlarmInfoBluetoothModel)
206
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
207
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
208
+ */
209
+ + (void)setAlarmCommand:(IDOSetAlarmInfoBluetoothModel * _Nullable)alarmModel callback:(void(^_Nullable)(int errorCode))callback;
210
+
211
+ /**
212
+ * @brief 批量设置闹钟 | Set alarms in batches
213
+ * @param alarmModels 闹钟集合 model (IDOSetAlarmInfoBluetoothModel) | Alarm clock collection model (IDOSetAlarmInfoBluetoothModel)
214
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
215
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
216
+ */
217
+ + (void)setAllAlarmsCommand:(NSArray <IDOSetAlarmInfoBluetoothModel *> * _Nullable)alarmModels callback:(void(^_Nullable)(int errorCode))callback;
218
+
219
+ /**
220
+ * @brief 设置用户信息 | Setting user information
221
+ * @param userModel 用户信息 model (IDOSetUserInfoBuletoothModel) | User Information model (IDOSetUserInfoBuletoothModel)
222
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
223
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
224
+ */
225
+ + (void)setUserInfoCommand:(IDOSetUserInfoBuletoothModel * _Nullable)userModel callback:(void(^_Nullable)(int errorCode))callback;
226
+
227
+ /**
228
+ * @brief 设置卡路里和距离目标 | Set calories and distance targets
229
+ * @param userModel 用户信息 model (IDOSetUserInfoBuletoothModel) | User Information model (IDOSetUserInfoBuletoothModel)
230
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
231
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
232
+ */
233
+ + (void)setCalorieAndDistanceGoalCommand:(IDOSetUserInfoBuletoothModel * _Nullable)userModel callback:(void (^ _Nullable)(int errorCode))callback;
234
+
235
+ /**
236
+ * @brief 设置目标 | Setting goals
237
+
238
+ * @param targetModel 目标信息 model (IDOSetUserInfoBuletoothModel) | targetModel target information model (IDOSetUserInfoBuletoothModel)
239
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
240
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
241
+ */
242
+ + (void)setTargetInfoCommand:(IDOSetUserInfoBuletoothModel * _Nullable)targetModel callback:(void(^_Nullable)(int errorCode))callback;
243
+
244
+ /**
245
+ * @brief 设置通知中心、来电提醒开关 ⚠️在配对过程中不要执行其他命令。如果设备没有配对,会发起配对,等配对成功后再执行设置子开关状态,需要配对耗时比较长请监听回调。
246
+ * Set up notification center, call alert switch.⚠️Do not execute other commands during pairing.
247
+ * If there is no pairing on the device, a pairing will be initiated, and the sub-switch state will be set after the pairing is successful.
248
+ * If pairing takes a long time, please listen for the callback.
249
+ * @param noticModel 通知开关信息 model (IDOSetNoticeInfoBuletoothModel)
250
+ * Notification switch information model (IDOSetNoticeInfoBuletoothModel)
251
+ * @param callback 设置后配对过程状态回调 stateCode:0x00为不明异常超时,0x01为系统配对成功,0x02为取消配对,isNeedDisconnect:是否需要断开重连,is need to disconnect and reconnect
252
+ * stateCode :0x00 indicates an unknown abnormal timeout,0x01 indicates successful system pairing, and 0x02 indicates unpairing
253
+ * @param complete 设置后完成配对回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
254
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
255
+ */
256
+ + (void)setSwitchNoticeCommand:(IDOSetNoticeInfoBuletoothModel * _Nullable)noticModel
257
+ callback:(void (^_Nullable)(BOOL isNeedDisconnect,int stateCode))callback
258
+ complete:(void (^_Nullable)(int errorCode))complete;
259
+
260
+ /**
261
+ * @brief 设置通知中心、来电提醒开关,此方法只设置子开关状态。
262
+ * Set up notification center, call alert switch.method sets only the subswitch state
263
+ * @param noticModel 通知开关信息 model (IDOSetNoticeInfoBuletoothModel)
264
+ * Notification switch information model (IDOSetNoticeInfoBuletoothModel)
265
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
266
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
267
+ */
268
+ + (void)setChildSwitchNoticeStateCommand:(IDOSetNoticeInfoBuletoothModel * _Nullable)noticModel callback:(void (^_Nullable)(int errorCode))callback;
269
+
270
+ /**
271
+ * @brief 设置蓝牙配对 (不可重复设置,会引起无法再连接设备.只要配对成功,就不需要再设置,只有获取到系统配对设备被忽略,才可设置配对。⚠️在配对过程中不要执行其他命令。)
272
+ * Set up Bluetooth pairing (cannot be set repeatedly, it will cause the device to be connected again. As long as the pairing is successful,
273
+ * you don't need to set it again. Only when the system pairing device is ignored, the pairing can be set.⚠️Do not execute other commands during pairing.)
274
+ * @param callback 设置后配对过程状态回调 stateCode:0x00为不明异常超时,0x01为系统配对成功,0x02为取消配对,isNeedDisconnect:是否需要断开重连,is need to disconnect and reconnect
275
+ * stateCode :0x00 indicates an unknown abnormal timeout,0x01 indicates successful system pairing, and 0x02 indicates unpairing
276
+ * @param complete 设置后完成配对回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
277
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
278
+ */
279
+ + (void)setBluetoothPairingCommandWithCallback:(void (^_Nullable)(BOOL isNeedDisconnect,int stateCode))callback
280
+ pairingComplete:(void (^_Nullable)(int errorCode))complete;
281
+
282
+ /**
283
+ * @brief 设置寻找手机 | Set looking for a mobile phone
284
+ * @param findModel 寻找手机信息 model (IDOSetFindPhoneInfoBuletoothModel)
285
+ * Find mobile information model (IDOSetFindPhoneInfoBuletoothModel)
286
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
287
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
288
+ */
289
+ + (void)setFindPhoneCommand:(IDOSetFindPhoneInfoBuletoothModel * _Nullable)findModel callback:(void (^ _Nullable)(int errorCode))callback;
290
+
291
+ /**
292
+ * @brief 设置抬腕 | Set the wrist
293
+ * @param handUpmodel 抬腕信息 model (IDOSetHandUpInfoBuletoothModel)
294
+ * Wrist information model (IDOSetHandUpInfoBuletoothModel)
295
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
296
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
297
+ */
298
+ + (void)setHandUpCommand:(IDOSetHandUpInfoBuletoothModel * _Nullable)handUpmodel callback:(void (^ _Nullable)(int errorCode))callback;
299
+
300
+ /**
301
+ * @brief 设置左右手佩戴 | Set the left and right hand to wear
302
+ * @param handModel 左右手佩戴 model (IDOSetLeftOrRightInfoBuletoothModel)
303
+ * Left and right hand wearing model (IDOSetLeftOrRightInfoBuletoothModel)
304
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
305
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
306
+ */
307
+ + (void)setLeftRightHandCommand:(IDOSetLeftOrRightInfoBuletoothModel *_Nullable)handModel callback:(void (^ _Nullable)(int errorCode))callback;
308
+
309
+ /**
310
+ * @brief 设置音乐开关 | Set music switch
311
+ * @param openMusicModel 音乐开关 model (IDOSetMusicOpenInfoBuletoothModel)
312
+ * Music Switch model (IDOSetMusicOpenInfoBuletoothModel)
313
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
314
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
315
+ */
316
+ + (void)setOpenMusicCommand:(IDOSetMusicOpenInfoBuletoothModel * _Nullable)openMusicModel callback:(void (^ _Nullable)(int errorCode))callback;
317
+
318
+ /**
319
+ * @brief 设置预防丢失 | Set to prevent loss
320
+
321
+ * @param lostModel 预防丢失 model (IDOSetPreventLostInfoBuletoothModel)
322
+ * Prevent loss model (IDOSetPreventLostInfoBuletoothModel)
323
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
324
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
325
+ */
326
+ + (void)setPreventLostCommand:(IDOSetPreventLostInfoBuletoothModel * _Nullable)lostModel callback:(void (^ _Nullable)(int errorCode))callback;
327
+
328
+ /**
329
+ * @brief 设置显示模式 | Setting the display mode
330
+ * @param displaModel 显示模式 model (IDOSetDisplayModeInfoBluetoothModel)
331
+ * Display mode model (IDOSetDisplayModeInfoBluetoothModel)
332
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
333
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
334
+ */
335
+ + (void)setDisplayModeCommand:(IDOSetDisplayModeInfoBluetoothModel * _Nullable)displaModel callback:(void (^ _Nullable)(int errorCode))callback;
336
+
337
+ /**
338
+ * @brief 设置久坐 | Set sedentary
339
+ * @param longSitModel 久坐 model (IDOSetLongSitInfoBuletoothModel)
340
+ * Sedentary model (IDOSetLongSitInfoBuletoothModel)
341
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
342
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
343
+ */
344
+ + (void)setLongSitCommand:(IDOSetLongSitInfoBuletoothModel * _Nullable)longSitModel callback:(void (^ _Nullable)(int errorCode))callback;
345
+
346
+ /**
347
+ * @brief 设置天气预报开关 | Set the weather forecast switch
348
+ * @param weatherModel 天气预报开关 model (IDOSetWeatherSwitchInfoBluetoothModel)
349
+ * Weather Forecast Switch model (IDOSetWeatherSwitchInfoBluetoothModel)
350
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
351
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
352
+ */
353
+ + (void)setWeatherCommand:(IDOSetWeatherSwitchInfoBluetoothModel * _Nullable)weatherModel callback:(void (^ _Nullable)(int errorCode))callback;
354
+
355
+ /**
356
+ * @brief 设置心率模式 | Set heart rate mode
357
+ * @param hrModeModel 心率模式 model (IDOSetHRModeInfoBluetoothModel)
358
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
359
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
360
+ */
361
+ + (void)setHrModeCommand:(IDOSetHrModeInfoBluetoothModel * _Nullable)hrModeModel callback:(void(^_Nullable)(int errorCode))callback;
362
+
363
+ /**
364
+ * @brief 设置防打扰模式 | Set the anti-disturb mode
365
+ * @param noDisturbModeModel 防打扰模式 model (IDOSetNoDisturbModeInfoBluetoothModel)
366
+ * Anti-disturbance mode model (IDOSetNoDisturbModeInfoBluetoothModel)
367
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
368
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
369
+ */
370
+ + (void)setNoDisturbModeCommand:(IDOSetNoDisturbModeInfoBluetoothModel * _Nullable)noDisturbModeModel callback:(void(^_Nullable)(int errorCode))callback;
371
+
372
+ /**
373
+ * @brief 设置心率间隔 | Set heart rate interval
374
+ * @param hrIntervalModel 心率间隔 model (IDOSetHrIntervalInfoBluetoothModel)
375
+ * Heart Rate Interval model (IDOSetHrIntervalInfoBluetoothModel)
376
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
377
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
378
+ */
379
+ + (void)setHrIntervalCommand:(IDOSetHrIntervalInfoBluetoothModel * _Nullable)hrIntervalModel callback:(void(^_Nullable)(int errorCode))callback;
380
+
381
+ /**
382
+ * @brief 设置单位 | Setting unit
383
+ * @param unitModel 单位 model (IDOSetUnitInfoBluetoothModel) | unit model (IDOSetUnitInfoBluetoothModel)
384
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
385
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
386
+ */
387
+ + (void)setUnitCommand:(IDOSetUnitInfoBluetoothModel * _Nullable)unitModel callback:(void(^_Nullable)(int errorCode))callback;
388
+
389
+ /**
390
+ * @brief 设置一键呼叫 | Set up a one-click call
391
+ * @param oneKeySOSModel 一键呼叫 model (IDOSetOneKeySosInfoBuletoothModel)
392
+ * One-click calling model (IDOSetOneKeySosInfoBuletoothModel)
393
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
394
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
395
+ */
396
+ + (void)setOneKeySosCommand:(IDOSetOneKeySosInfoBuletoothModel * _Nullable)oneKeySOSModel callback:(void(^_Nullable)(int errorCode))callback;
397
+
398
+ /**
399
+ * @brief 设置快捷方式 | Setting shortcuts
400
+ * @param shortcutModel 快捷方式 model (IDOSetShortcutInfoBluetoothModel) | Shortcut model (IDOSetShortcutInfoBluetoothModel)
401
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
402
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
403
+ */
404
+ + (void)setShortcutCommand:(IDOSetShortcutInfoBluetoothModel * _Nullable)shortcutModel callback:(void(^_Nullable)(int errorCode))callback;
405
+
406
+
407
+ /**
408
+ * @brief 设置血压舒张、收缩 | Set blood pressure to relax and contract
409
+ * @param calModel 血压舒张、收缩 model (IDOSetBloodPressureInfoBluetoothModel)
410
+ * Blood pressure diastolic, contraction model (IDOSetBloodPressureInfoBluetoothModel)
411
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str ; model包含校准状态值)
412
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
413
+ */
414
+ + (void)setBpCalCommand:(IDOSetBloodPressureInfoBluetoothModel * _Nullable)calModel
415
+ callback:(void(^_Nullable)(int errorCode,IDOSetBloodPressureInfoBluetoothModel * _Nullable model))callback;
416
+
417
+ /**
418
+ * @brief 设置运动快捷方式 | Set motion shortcuts
419
+ * @param sportSelectModel 运动快捷方式 model (IDOSetSportShortcutInfoBluetoothModel)
420
+ * Sports shortcut model (IDOSetSportShortcutInfoBluetoothModel)
421
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
422
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
423
+ */
424
+ + (void)setSportModeSelectCommand:(IDOSetSportShortcutInfoBluetoothModel * _Nullable)sportSelectModel callback:(void(^_Nullable)(int errorCode))callback;
425
+
426
+ /**
427
+ * @brief 设置运动模式排序 | Set motion shortcuts
428
+ * @param sportSortModel 运动模式排序 model (IDOSetSportSortingInfoBluetoothModel)
429
+ * sport mode sort Model (IDOSetSportSortingInfoBluetoothModel)
430
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
431
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
432
+ */
433
+ + (void)setSportModeSortCommand:(IDOSetSportSortingInfoBluetoothModel * _Nullable)sportSortModel callback:(void(^_Nullable)(int errorCode))callback;
434
+
435
+ /**
436
+ * @brief 设置天气预报数据 | Set weather forecast data
437
+ * @param weatherDataModel 天气预报数据 model (IDOSetWeatherDataInfoBluetoothModel)
438
+ * Weather Forecast Data model (IDOSetWeatherDataInfoBluetoothModel)
439
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
440
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
441
+ */
442
+ + (void)setWeatherDataCommand:(IDOSetWeatherDataInfoBluetoothModel *_Nullable)weatherDataModel
443
+ callback:(void (^ _Nullable)(int errorCode))callback;
444
+
445
+ /**
446
+ * @brief 设置天气预报数据 (定制扩展功能数据不存储) | Set city name (Extend functionality)
447
+ * @param weatherData 天气预报数据 @{@"today":weatherModel,@"city":@"",@"oneHourWeather":@[@{@"type":@(0),@"temp":@(0)}...]}
448
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
449
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
450
+ */
451
+ + (void)setWeatherDataExtensionCommand:(NSDictionary *_Nullable)weatherData
452
+ callback:(void (^ _Nullable)(int errorCode))callback;
453
+
454
+ /**
455
+ * @brief 设置iot按钮集合 (定制扩展功能数据不存储) | Set of iot buttons (Extend functionality)
456
+ * @param buttonNames iot按钮集合最多可以设置20个按钮 @[@{@"index":@(0),@"button":@""}...]
457
+ * callback 设置按钮集合回调进度 (0~1) | Set the button progress callback (0~1)
458
+ * @param complete 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
459
+ * Set post complete (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
460
+ */
461
+ + (void)setIotButtonNamesCommand:(NSArray <NSDictionary * >* _Nullable)buttonNames
462
+ callback:(void (^ _Nullable)(float progress))callback
463
+ complete:(void (^ _Nullable)(int errorCode))complete;
464
+
465
+ /**
466
+ * @brief 设置屏幕亮度 | Set screen brightness
467
+ * @param screenBrightnessModel 屏幕亮度 model (IDOSetScreenBrightnessInfoBluetoothModel)
468
+ * Screen Brightness model (IDOSetScreenBrightnessInfoBluetoothModel)
469
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
470
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
471
+ */
472
+ + (void)setScreenBrightnessCommand:(IDOSetScreenBrightnessInfoBluetoothModel * _Nullable)screenBrightnessModel callback:(void (^ _Nullable)(int errorCode))callback;
473
+
474
+ /**
475
+ * @brief 设置GPS信息 | Set GPS information
476
+ * @param gpsInfoModel GPS信息 model (IDOSetGpsConfigInfoBluetoothModel)
477
+ * GPS information model (IDOSetGpsConfigInfoBluetoothModel)
478
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
479
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
480
+ */
481
+ + (void)setGpsInfoCommand:(IDOSetGpsConfigInfoBluetoothModel * _Nullable)gpsInfoModel callback:(void (^ _Nullable)(int errorCode))callback;
482
+
483
+ /**
484
+ * @brief 设置GPS控制信息 | Set GPS Control Information
485
+ * @param gpsControlModel GPS控制信息 model (IDOSetGpsControlInfoBluetoothModel)
486
+ * GPS Control Information model (IDOSetGpsControlInfoBluetoothModel)
487
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str) (status 0 : 写入失败 , 1 : 正在写入 , 2 : 写入完成)
488
+ */
489
+ + (void)setGpsControlCommand:(IDOSetGpsControlInfoBluetoothModel * _Nullable)gpsControlModel
490
+ callback:(void (^ _Nullable)(int status,int errorCode))callback;
491
+
492
+ /**
493
+ * @brief 设置控制连接参数 | Setting Control Connection Parameters
494
+ * @param connParamModel 控制连接参数 model (IDOSetConnParamInfoBluetoothModel)
495
+ * Control connection parameters model (IDOSetConnParamInfoBluetoothModel)
496
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
497
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
498
+ */
499
+ + (void)setConnParamCommand:(IDOSetConnParamInfoBluetoothModel * _Nullable)connParamModel callback:(void (^ _Nullable)(int errorCode))callback;
500
+
501
+ /**
502
+ * @brief 设置热启动参数 | Setting hot start parameters
503
+ * @param hotStartParamModel 热启动参数 model (IDOGetHotStartParamBluetoothModel)
504
+ * Hot Start Parameters model (IDOGetHotStartParamBluetoothModel)
505
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
506
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
507
+ */
508
+ + (void)setHotStartParamCommand:(IDOGetHotStartParamBluetoothModel * _Nullable)hotStartParamModel callback:(void (^ _Nullable)(int errorCode))callback;
509
+
510
+ /**
511
+ * @brief 设置传感器实时数据 | Set sensor real-time data
512
+ * @param realTimeModel 传感器实时数据 model (IDOSetRealTimeSensorDataInfoBluetoothModel)
513
+ * Sensor real-time data model (IDOSetRealTimeSensorDataInfoBluetoothModel)
514
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
515
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
516
+ */
517
+ + (void)setRealTimeSensorDataCommand:(IDOSetRealTimeSensorDataInfoBluetoothModel * _Nullable)realTimeModel callback:(void (^ _Nullable)(int errorCode))callback;
518
+
519
+ /**
520
+ * @brief 设置马达参数 | Setting the motor parameters
521
+ * @param startMotorModel 马达参数 model (IDOSetStartMotorInfoBluetoothModel)
522
+ * Motor Parameter model (IDOSetStartMotorInfoBluetoothModel)
523
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
524
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
525
+ */
526
+ + (void)setStartMotorCommand:(IDOSetStartMotorInfoBluetoothModel * _Nullable)startMotorModel callback:(void (^ _Nullable)(int errorCode))callback;
527
+
528
+
529
+ /**
530
+ * @brief 设置表盘参数 | Setting the dial parameters
531
+ * @param watchDiaModel 表盘参数 model (IDOSetWatchDiaInfoBluetoothModel)
532
+ * Dial Parameters model (IDOSetWatchDiaInfoBluetoothModel)
533
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
534
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
535
+ */
536
+ + (void)setWatchDiaCommand:(IDOSetWatchDiaInfoBluetoothModel * _Nullable)watchDiaModel callback:(void (^ _Nullable)(int errorCode))callback;
537
+
538
+
539
+ /**
540
+ * @brief 设置血压测量参数 | Setting blood pressure measurement parameters
541
+ * @param bpMeasureModel 血压测量参数 model (IDOSetBpMeasureInfoBluetoothModel)
542
+ * Blood pressure measurement parameters model (IDOSetBpMeasureInfoBluetoothModel)
543
+ * @param callback 设置回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str ; model实时血压数据和状态)
544
+ * Set callback (errorCode: 0 transmission succeeded, other values are wrong, error code str can be obtained according to IDOErrorCodeToStr;
545
+ * model real-time blood pressure data and status)
546
+ */
547
+ + (void)setBpMeasureCommand:(IDOSetBpMeasureInfoBluetoothModel * _Nullable)bpMeasureModel
548
+ callback:(void (^ _Nullable)(int errorCode,IDOSetBpMeasureInfoBluetoothModel * _Nullable model))callback;;
549
+
550
+
551
+ /**
552
+ * @brief 设置睡眠时间段 | Setting the sleep period
553
+ * @param sleepPeriodModel 睡眠时间段 model (IDOSetSleepPeriodInfoBluetoothModel)
554
+ * Sleep time period model (IDOSetSleepPeriodInfoBluetoothModel)
555
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
556
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
557
+ */
558
+ + (void)setSleepPeriodCommand:(IDOSetSleepPeriodInfoBluetoothModel * _Nullable)sleepPeriodModel callback:(void (^ _Nullable)(int errorCode))callback;
559
+
560
+ /**
561
+ * @brief 设置女性生理周期 (id205) | Setting the female physiological cycle (id205)
562
+ * @param menstrualModel 女性生理周期 model (IDOSetMenstruationInfoBluetoothModel)
563
+ * Female Physiological Cycle model (IDOSetMenstruationInfoBluetoothModel)
564
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
565
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
566
+ */
567
+ + (void)setMenstrualCommand:(IDOSetMenstruationInfoBluetoothModel * _Nullable)menstrualModel callback:(void (^ _Nullable)(int errorCode))callback;
568
+
569
+
570
+ /**
571
+ * @brief 设置女性生理周期提醒 (id205) | Set Women's Physiological Cycle Reminder (id205)
572
+ * @param remindModel 女性生理周期提醒 model (IDOSetMenstruationRemindBluetoothModel)
573
+ * Female Physiological Cycle Reminder model (IDOSetMenstruationRemindBluetoothModel)
574
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
575
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
576
+ */
577
+ + (void)setMenstrualRemindCommand:(IDOSetMenstruationRemindBluetoothModel * _Nullable)remindModel callback:(void (^ _Nullable)(int errorCode))callback;
578
+
579
+ /**
580
+ * @brief 设置每分钟呼吸次数 (139) | Breaths per minute
581
+ * @param breatheModel 每分钟呼吸次数 model (IDOSetBreatheTrainBluetoothModel)
582
+ * Breaths per minute model (IDOSetBreatheTrainBluetoothModel)
583
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
584
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
585
+ */
586
+ + (void)setBreatheTrainCommand:(IDOSetBreatheTrainBluetoothModel * _Nullable)breatheModel callback:(void (^ _Nullable)(int errorCode))callback;
587
+
588
+ /**
589
+ * @brief 设置走动提醒开关 (139) | Walking reminder switch
590
+ * @param walkModel 走动提醒开关 model (IDOSetWalkReminderBluetoothModel)
591
+ * Walking reminder switch model (IDOSetWalkReminderBluetoothModel)
592
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
593
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
594
+ */
595
+ + (void)setWalkReminderCommand:(IDOSetWalkReminderBluetoothModel * _Nullable)walkModel callback:(void (^ _Nullable)(int errorCode))callback;
596
+
597
+ /**
598
+ * @brief 设置血氧开关 (139) | blood oxygen switch
599
+ * @param spo2Model 血氧开关 model (IDOSetSpo2SwitchBluetoothModel)
600
+ * blood oxygen switch model (IDOSetSpo2SwitchBluetoothModel)
601
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
602
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
603
+ */
604
+ + (void)setSpo2SwitchCommand:(IDOSetSpo2SwitchBluetoothModel * _Nullable)spo2Model callback:(void (^ _Nullable)(int errorCode))callback;
605
+
606
+ /**
607
+ * @brief 设置运动开关 (139) | activity switch
608
+ * @param switchModel 运动开关 model (IDOSetActivitySwitchBluetoothModel)
609
+ * activity switch model (IDOSetActivitySwitchBluetoothModel)
610
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
611
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
612
+ */
613
+ + (void)setActivitySwitchCommand:(IDOSetActivitySwitchBluetoothModel * _Nullable)switchModel callback:(void (^ _Nullable)(int errorCode))callback;
614
+
615
+ /**
616
+ * @brief 设置心率开关同步 (139) | v3 heart rate
617
+ * @param v3HrModel 心率开关 model (IDOSetV3HeartRateModeBluetoothModel)
618
+ * v3 heart rate switch model (IDOSetV3HeartRateModeBluetoothModel)
619
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
620
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
621
+ */
622
+ + (void)setV3HrModelCommand:(IDOSetV3HeartRateModeBluetoothModel * _Nullable)v3HrModel callback:(void (^ _Nullable)(int errorCode))callback;
623
+
624
+ /**
625
+ * @brief 设置喝水提醒 | drink water reminder
626
+ * @param drinkModel 喝水提醒开关 model (IDOSetDrinkReminderModeBluetoothModel)
627
+ * drink water reminder switch model (IDOSetDrinkReminderModeBluetoothModel)
628
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
629
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
630
+ */
631
+ + (void)setDrinkReminderCommand:(IDOSetDrinkReminderModeBluetoothModel * _Nullable)drinkModel callback:(void (^ _Nullable)(int errorCode))callback;
632
+
633
+ /**
634
+ * @brief 设置星星数量 数据不作存储 (锐捷) | Set the number of stars (ruijie)
635
+ * @param startCount 星星数量 (1~5)| number of stars (1~5)
636
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
637
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
638
+ */
639
+ + (void)setStartCountCommand:(NSInteger)startCount callback:(void (^ _Nullable)(int errorCode))callback;
640
+
641
+ /**
642
+ * @brief 设置蓝牙短信推送 数据不作存储 (锐捷) | Set bluetooth SMS push (ruijie)
643
+ * @param content 蓝牙短信推送内容 (最长64个字节) | push content (Up to 64 bytes)
644
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
645
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
646
+ */
647
+ + (void)setContentCommand:(NSString * _Nullable)content callback:(void (^ _Nullable)(int errorCode))callback;
648
+
649
+ /**
650
+ * @brief 设置用户名字 数据不作存储 (锐捷) | Set user name (ruijie)
651
+ * @param userName 用户名字 (最长10个字节) | user name (Up to 10 bytes)
652
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
653
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
654
+ */
655
+ + (void)setUserNameCommand:(NSString * _Nullable)userName callback:(void (^ _Nullable)(int errorCode))callback;
656
+
657
+ /**
658
+ * @brief 设置用户号码 数据不作存储 (锐捷) | Set user number (ruijie)
659
+ * @param userNumber 用户号码 (最长10个字节) | user number (Up to 10 bytes)
660
+ * @param callback 设置后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
661
+ * Set post callback (errorCode : 0 transfer succeeds, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
662
+ */
663
+ + (void)setUserNumberCommand:(NSString * _Nullable)userNumber callback:(void (^ _Nullable)(int errorCode))callback;
664
+
665
+ #pragma mark ======= get Command =======
666
+
667
+ /**
668
+ * @brief 获取mac地址 | Get mac address
669
+ * @param callback 执行后回调 data (IDOGetMacAddrInfoBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
670
+ * Post-execution callback data (IDOGetMacAddrInfoBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
671
+ */
672
+ + (void)getMacAddrCommand:(void(^_Nullable)(int errorCode,IDOGetMacAddrInfoBluetoothModel * _Nullable data))callback;
673
+
674
+ /**
675
+ * @brief 获取设备信息 | Get device information
676
+ * @param callback 执行后回调 data (IDOGetDeviceInfoBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
677
+ * Post-execution callback data (IDOGetDeviceInfoBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
678
+ */
679
+ + (void)getDeviceInfoCommand:(void(^_Nullable)(int errorCode,IDOGetDeviceInfoBluetoothModel * _Nullable data))callback;
680
+
681
+ /**
682
+ * @brief 获取功能列表 | Get the list of features
683
+ * @param callback 执行后回调 data (IDOGetDeviceFuncBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
684
+ * Post-execution callback data (IDOGetDeviceFuncBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
685
+ */
686
+ + (void)getFuncTableCommand:(void(^_Nullable)(int errorCode,IDOGetDeviceFuncBluetoothModel * _Nullable data))callback;
687
+
688
+ /**
689
+ * 在非OTA模式下连接成功后,需要准备在同步配置时设置的默认数据,回调后根据类型保存需要设置的数据,在同步配置时分别设置,无需单独执行命令(只有支持相应功能类型才会返回)
690
+ * After successful connection in non-ota mode, you need to prepare the default data set during synchronization configuration,
691
+ * save the data set according to the type after callback, and set them separately during synchronization configuration without executing separate commands
692
+ */
693
+ + (void)syncConfigSetDefaultValuesCallback:(void(^_Nullable)(IDO_SYNC_CONFIG_DATA_TYPE type,BOOL isComplete))callback;
694
+
695
+ /**
696
+ * @brief 获得实时数据 | Get real-time data
697
+ * @param callback 执行后回调 data (IDOGetLiveDataBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
698
+ * Post-execution callback data (IDOGetLiveDataBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
699
+ */
700
+ + (void)getLiveDataCommand:(void(^_Nullable)(int errorCode,IDOGetLiveDataBluetoothModel * _Nullable data))callback;
701
+
702
+ /**
703
+ * @brief 获取设备当前时间 | Get the current time of the device
704
+ * @param callback 执行后回调 data (IDOGetDeviceTimeBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
705
+ * Post-execution callback data (IDOGetDeviceTimeBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
706
+ */
707
+ + (void)getDeviceTimeCommand:(void(^_Nullable)(int errorCode,IDOGetDeviceTimeBluetoothModel * _Nullable data))callback;
708
+
709
+ /**
710
+ * @brief 获取通知中心的状态 | Get the status of the notification center
711
+ * @param callback 执行后回调 data (IDOSetNoticeInfoBuletoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
712
+ * Post-execution callback data (IDOSetNoticeInfoBuletoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
713
+ */
714
+ + (void)getNoticeStatusCommand:(void(^_Nullable)(int errorCode,IDOSetNoticeInfoBuletoothModel * _Nullable data))callback;
715
+
716
+ /**
717
+ * @brief 获取心率传感器参数 | Get Heart Rate Sensor Parameters
718
+ * @param callback 执行后回调 data (IDOGetHrSensorParamBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
719
+ * Post-execution callback data (IDOGetHrSensorParamBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
720
+ */
721
+ + (void)getHrSensorParamCommand:(void(^_Nullable)(int errorCode,IDOGetHrSensorParamBluetoothModel * _Nullable data))callback;
722
+
723
+ /**
724
+ * @brief 获取加速度传感器参数 | Acquire acceleration sensor parameters
725
+ * @param callback 执行后回调 data (IDOGetGsensorParamBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
726
+ * Post-execution callback data (IDOGetGsensorParamBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
727
+ */
728
+ + (void)getGsensorParamCommand:(void(^_Nullable)(int errorCode,IDOGetGsensorParamBluetoothModel * _Nullable data))callback;
729
+
730
+ /**
731
+ * @brief 获取活动数量 | Get the number of events
732
+ * @param callback 执行后回调 data (IDOGetActivityCountBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
733
+ * Post-execution callback data (IDOGetActivityCountBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
734
+ */
735
+ + (void)getActivityCountCommand:(void(^_Nullable)(int errorCode,IDOGetActivityCountBluetoothModel * _Nullable data))callback;
736
+
737
+ /**
738
+ * @brief 获取hid信息 | Get hid information
739
+ * @param callback 执行后回调 data (IDOGetHidInfoBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
740
+ * Post-execution callback data (IDOGetHidInfoBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
741
+ */
742
+ + (void)getHidInfoCommand:(void(^_Nullable)(int errorCode,IDOGetHidInfoBluetoothModel * _Nullable data))callback;
743
+
744
+ /**
745
+ * @brief 获取gps信息 | Get gps information
746
+ * @param callback 执行后回调 data (IDOGetGpsInfoBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
747
+ * Post-execution callback data (IDOGetGpsInfoBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
748
+ */
749
+ + (void)getGpsInfoCommand:(void(^_Nullable)(int errorCode,IDOGetGpsInfoBluetoothModel * _Nullable data))callback;
750
+
751
+ /**
752
+ * @brief 获取热启动参数 | Get hot start parameters
753
+ * @param callback 执行后回调 data (IDOGetHotStartParamBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
754
+ * Post-execution callback data (IDOGetHotStartParamBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
755
+ */
756
+ + (void)getHotStartParamCommand:(void(^_Nullable)(int errorCode,IDOGetHotStartParamBluetoothModel * _Nullable data))callback;
757
+
758
+ /**
759
+ * @brief 获取GPS状态 | Get GPS status
760
+ * @param callback 执行后回调 data (IDOGetGpsStatusBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
761
+ * Post-execution callback data (IDOGetGpsStatusBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
762
+ */
763
+ + (void)getGpsStatusCommand:(void(^_Nullable)(int errorCode,IDOGetGpsStatusBluetoothModel * _Nullable data))callback;
764
+
765
+ /**
766
+ * @brief 获取版本信息 | Get version information
767
+ * @param callback 执行后回调 data (IDOGetVersionInfoBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
768
+ * Post-execution callback data (IDOGetVersionInfoBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
769
+ */
770
+ + (void)getVersionInfoCommand:(void(^_Nullable)(int errorCode,IDOGetVersionInfoBluetoothModel * _Nullable data))callback;
771
+
772
+ /**
773
+ * @brief 获取realtek平台 ota授权 | Obtain ota authorization of realtek platform
774
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
775
+ * Post-execution callback (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
776
+ * stateCode 0x00:校验成功,0x01:ID号校验失败,0x02:版本号校验失败,0x03:电量不足,0x04:其他错误
777
+ * stateCode 0x00: verification success,0x01:ID number verification failure,0x02: version number verification failure,0x03: insufficient power,0x04: other errors
778
+ */
779
+ + (void)getOtaAuthInfoCommand:(void(^_Nullable)(int errorCode,int stateCode))callback;
780
+
781
+ /**
782
+ * @brief 获取5个心率区间交换数据 | Exchange data of 5 heart rate intervals were obtained
783
+ * @param exchangeModel 运动过程中交互数据模型 | Interactive data model during motion
784
+ * @param callback 执行后回调 data (IDOGetFiveHrReplyInfoBluetoothModel)
785
+ * (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
786
+ * Post-execution callback data (IDOGetFiveHrReplyInfoBluetoothModel)
787
+ * (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
788
+ */
789
+ + (void)getSwithHrInterval:(IDODataExchangeModel * _Nullable)exchangeModel
790
+ callback:(void(^_Nullable)(int errorCode,IDOGetFiveHrReplyInfoBluetoothModel * _Nullable data))callback;
791
+
792
+
793
+ /**
794
+ * @brief 默认的运动类型 | get default sport type
795
+ * @param callback 执行后回调 data (IDOGetDefaultSportTypeBluetoothModel) (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
796
+ * Post-execution callback data (IDOGetDefaultSportTypeBluetoothModel) (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
797
+ */
798
+ + (void)getDefaultSportTypeCommand:(void(^_Nullable)(int errorCode,IDOGetDefaultSportTypeBluetoothModel * _Nullable data))callback;
799
+
800
+ /**
801
+ * @brief 获取星星的数量,数据不作存储(锐捷) | Get number of stars (ruijie)
802
+ * @param callback 执行后回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
803
+ * (errorCode : 0 The transfer was successful, the other values are errors, and the error code str can be obtained according to IDOErrorCodeToStr)
804
+ */
805
+ + (void)getStartCountCommand:(void (^ _Nullable)(int errorCode,NSInteger startCount))callback;
806
+
807
+ #pragma mark ======= listen Command =======
808
+
809
+ /**
810
+ * @brief 音乐开始 | Music begins
811
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
812
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
813
+ */
814
+ + (void)listenMusicStartCommand:(void(^_Nullable)(int errorCode))callback;
815
+
816
+ /**
817
+ * @brief 音乐暂停 | Music pause
818
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
819
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
820
+ */
821
+ + (void)listenMusicPauseCommand:(void(^_Nullable)(int errorCode))callback;
822
+
823
+ /**
824
+ * @brief 音乐结束 | End of music
825
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
826
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
827
+ */
828
+ + (void)listenMusicStopCommand:(void(^_Nullable)(int errorCode))callback;
829
+
830
+ /**
831
+ * @brief 音乐上一首 | Music on the first
832
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
833
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
834
+ */
835
+ + (void)listenMusicLastCommand:(void(^_Nullable)(int errorCode))callback;
836
+
837
+ /**
838
+ * @brief 音乐下一首 | Music next
839
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
840
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
841
+ */
842
+ + (void)listenMusicNextCommand:(void(^_Nullable)(int errorCode))callback;
843
+
844
+ /**
845
+ * @brief 单次拍照 | Single photo
846
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
847
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
848
+ */
849
+ + (void)listenPhotoSingleShotCommand:(void(^_Nullable)(int errorCode))callback;
850
+
851
+ /**
852
+ * @brief 连续拍照 | Taking photos continuously
853
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
854
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
855
+ */
856
+ + (void)listenPhotoBurstCommand:(void(^_Nullable)(int errorCode))callback;
857
+
858
+ /**
859
+ * @brief 拍照开始 | Take a photo
860
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
861
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
862
+ */
863
+ + (void)listenPhotoStartCommand:(void(^_Nullable)(int errorCode))callback;
864
+
865
+ /**
866
+ * @brief 拍照结束 | End of photo
867
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
868
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
869
+ */
870
+ + (void)listenPhotoEndCommand:(void(^_Nullable)(int errorCode))callback;
871
+
872
+ /**
873
+ * @brief 音量+ | Volume +
874
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
875
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
876
+ */
877
+ + (void)listenVolumeUpCommand:(void(^_Nullable)(int errorCode))callback;
878
+
879
+ /**
880
+ * @brief 音量- | Volume -
881
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
882
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
883
+ */
884
+ + (void)listenVolumeDownCommand:(void(^_Nullable)(int errorCode))callback;
885
+
886
+ /**
887
+ * @brief 寻找手机开始 | Looking for a mobile phone to start
888
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
889
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
890
+ */
891
+ + (void)listenFindPhoneStartCommand:(void(^_Nullable)(int errorCode))callback;
892
+
893
+ /**
894
+ * @brief 寻找手机结束 | Looking for the end of the phone
895
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
896
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
897
+ */
898
+ + (void)listenFindPhoneStopCommand:(void(^_Nullable)(int errorCode))callback;
899
+
900
+ /**
901
+ * @brief 防丢启动 | Anti-lost start
902
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
903
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
904
+ */
905
+ + (void)listenLostStartCommand:(void(^_Nullable)(int errorCode))callback;
906
+
907
+ /**
908
+ * @brief 防丢结束 | Anti-lost end
909
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
910
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
911
+ */
912
+ + (void)listenLostStopCommand:(void(^_Nullable)(int errorCode))callback;
913
+
914
+ /**
915
+ * @brief 一键求救 | One button for help
916
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
917
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
918
+ */
919
+ + (void)listenSosStartCommand:(void(^_Nullable)(int errorCode))callback;
920
+
921
+ /**
922
+ * @brief 闹钟同步完成 | Alarm clock synchronization completed
923
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
924
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
925
+ */
926
+ + (void)listenAlarmSyncCompleteCommand:(void(^_Nullable)(int errorCode))callback;
927
+
928
+ /**
929
+ * @brief 配置同步完成 | Configure synchronization completion
930
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
931
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
932
+ */
933
+ + (void)listenConfigSyncCompleteCommand:(void(^_Nullable)(int errorCode))callback;
934
+
935
+ /**
936
+ * @brief 健康同步完成 | Health sync completed
937
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
938
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
939
+ */
940
+ + (void)listenHealthSyncCompleteCommand:(void(^_Nullable)(int errorCode))callback;
941
+
942
+ /**
943
+ * @brief 数据传输完成 | Data transfer completed
944
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
945
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
946
+ */
947
+ + (void)listenDataTranCompleteCommand:(void(^_Nullable)(int errorCode))callback;
948
+
949
+ /**
950
+ * @brief 配置快速同步完成 | Configuring Fast Sync Complete
951
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
952
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
953
+ */
954
+ + (void)listenConfigFastSyncCompleteCommand:(void(^_Nullable)(int errorCode))callback;
955
+
956
+ /**
957
+ * @brief GPS数据同步完成 | GPS data synchronization completed
958
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
959
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
960
+ */
961
+ + (void)listenGpsSyncCompleteCommand:(void(^_Nullable)(int errorCode))callback;
962
+
963
+ /**
964
+ * @brief 活动数据同步完成 | Activity data synchronization completed
965
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
966
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
967
+ */
968
+ + (void)listenActivitySyncCompleteCommand:(void(^_Nullable)(int errorCode))callback;
969
+
970
+ /**
971
+ * @brief 手环检查版本号 | Bracelet checks the version number
972
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
973
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
974
+ */
975
+ + (void)listenCheckUpdateReplyCommand:(void(^_Nullable)(int errorCode))callback;
976
+
977
+ /**
978
+ * @brief 手环发送iot按钮 | Bracelet send iot buttons
979
+ * @param callback 监听回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str,index 对应按钮索引)
980
+ * Listening callback (errorCode : 0 is successful, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
981
+ */
982
+ + (void)listenIotButtonCommand:(void(^_Nullable)(int errorCode,int index))callback;
983
+
984
+ #pragma mark ======= progress Command =======
985
+
986
+ /**
987
+ * @brief 健康数据同步进度 | Health data synchronization progress
988
+ * @param callback 健康数据同步进度回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
989
+ * Health data synchronization progress callback (errorCode : 0 transmission success, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
990
+ */
991
+ + (void)healthSyncProgressCommand:(void(^_Nullable)(int progress,int errorCode))callback;
992
+
993
+ /**
994
+ * @brief 闹钟数据同步进度 | Alarm data synchronization progress
995
+ * @param callback 闹钟数据同步进度回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
996
+ * Alarm data synchronization progress callback (errorCode : 0 transmission success, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
997
+ */
998
+ + (void)alarmSyncProgressCommand:(void(^_Nullable)(int progress,int errorCode))callback;
999
+
1000
+ /**
1001
+ * @brief 活动数据同步进度 | Activity data synchronization progress
1002
+ * @param callback 活动数据同步进度回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1003
+ * Activity data synchronization progress callback (errorCode : 0 transmission success, other values are errors, you can get error code str according to IDOErrorCodeToStr)
1004
+ */
1005
+ + (void)activitySyncProgressCommand:(void(^_Nullable)(int progress,int errorCode))callback;
1006
+
1007
+ /**
1008
+ * @brief 数据交换进度 手环->app | Data Exchange Progress Bracelet -> app
1009
+ * @param callback 数据交换进度回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1010
+ * Data exchange progress callback (errorCode: 0 transmission succeeded, other values are errors, error code str can be obtained according to IDOErrorCodeToStr)
1011
+ */
1012
+ + (void)dataTranProgressCommand:(void(^_Nullable)(int progress,int errorCode))callback;
1013
+
1014
+ /**
1015
+ * @brief gps数据同步进度 | gps data synchronization progress
1016
+ * @param callback gps数据同步进度回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1017
+ * gps data synchronization progress callback (errorCode: 0 transmission success, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
1018
+ */
1019
+ + (void)gpsProgressCommand:(void(^_Nullable)(int progress,int errorCode))callback;
1020
+
1021
+ /**
1022
+ * @brief 数据交换进度 app->手环 | Data Exchange Progress app->Bracelet
1023
+ * @param callback 数据交换进度回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1024
+ * Data exchange progress callback (errorCode: 0 transmission succeeded, other values are errors, error code str can be obtained according to IDOErrorCodeToStr)
1025
+ */
1026
+ + (void)appDataTranProgressCommand:(void(^_Nullable)(int progress,int errorCode))callback;
1027
+
1028
+ /**
1029
+ * @brief 配置同步进度 | Configure synchronization progress
1030
+ * @param callback 配置同步进度回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1031
+ * Configure synchronization progress callback (errorCode : 0 transmission succeeded, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
1032
+ */
1033
+ + (void)configSyncProgressCommand:(void(^_Nullable)(int progress,int errorCode))callback;
1034
+
1035
+ #pragma mark ======= data exchange Command =======
1036
+
1037
+ /**
1038
+ * @brief app 发起运动开始 | app starts the campaign
1039
+ * @param model IDODataExchangeModel (数据交换model, day|hour|minute|second|sportType|targetType|targetValue|forceStart 这些属性需要赋值)
1040
+ * IDODataExchangeModel (data exchange model, day|hour|minute|second|sportType|targetType|targetValue|forceStart These attributes need to be assigned)
1041
+ * @param startCallback 运动发起回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1042
+ * Motion initiated callback (errorCode : 0 transmission succeeded, other values are errors, error code str can be obtained according to IDOErrorCodeToStr)
1043
+ */
1044
+ + (void)appStartSportCommand:(IDODataExchangeModel * _Nullable)model
1045
+ startCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))startCallback;
1046
+
1047
+ /**
1048
+ * @brief app 发起运动结束 | app initiates the end of the campaign
1049
+ * @param model IDODataExchangeModel 活动时间需要保持一致,才能停止活动不然无效,当前model对象为全局时,只要开始活动记录开始时间,
1050
+ * 结束时不需要再次给时间赋值,只需要给 durations|calories|distance|sportType|isSave 这些属性需要赋值
1051
+ * IDODataExchangeModel activity time needs to be consistent in order to stop the activity or it will be invalid. When the current model object is global,
1052
+ * just start the activity record start time. You don't need to assign values to the time at the end, just give durations|calories|distance|sportType|isSave
1053
+ * these properties need to be assigned.
1054
+ * @param appEndCallback 运动停止回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1055
+ * Motion stop callback (errorCode : 0 transfer succeeded, other values are wrong, you can get error code str according to IDOErrorCodeToStr)
1056
+ */
1057
+ + (void)appEndSportCommand:(IDODataExchangeModel *_Nullable)model
1058
+ appEndcallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))appEndCallback;
1059
+
1060
+ /**
1061
+ * @brief app发起的运动 手环主动结束 | App-initiated sports bracelet ends actively
1062
+ * @param model IDODataExchangeModel 手环主动发起结束 APP需要给手环发送运动数据, durations|calories|distance|errorCode 这些属性需要赋值
1063
+ * IDODataExchangeModel The bracelet is actively launched. The APP needs to send motion data to the bracelet. durations|calories|distance|errorCode
1064
+ * These attributes need to be assigned.
1065
+ * @param appBleEndCallback 手环发起停止回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1066
+ * The bracelet initiates a stop callback (errorCode: 0 is successfully transmitted, other values are incorrect, and error code str can be obtained according to IDOErrorCodeToStr)
1067
+ */
1068
+ + (void)appBleEndReplyCommand:(IDODataExchangeModel *_Nullable)model
1069
+ appBleEndCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))appBleEndCallback;
1070
+
1071
+
1072
+ /**
1073
+ * @brief app发起运动暂停 | app initiates a motion pause
1074
+ * @param model IDODataExchangeModel 活动时间需要保持一致,才能暂停活动不然无效,当前model对象为全局时,只要开始活动记录开始时间,暂停时不需要再次给时间赋值,直接传入当前model
1075
+ * IDODataExchangeModel activity time needs to be consistent in order to pause activity or not, when the current model object is global,  As soon as you start the activity
1076
+ * record start time, you don't need to assign time to the timeout when you pause, you can directly pass in the current model.
1077
+ * @param pauseCallback 运动暂停回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1078
+ * Motion pause callback (errorCode : 0 transmission success, other values are errors, you can get error code str according to IDOErrorCodeToStr)
1079
+ */
1080
+ + (void)appPauseSportCommand:(IDODataExchangeModel *_Nullable)model
1081
+ pauseCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))pauseCallback;
1082
+
1083
+
1084
+
1085
+ /**
1086
+ * @brief app发起的运动 手环主动暂停 | App-initiated sports bracelet active suspension
1087
+ * @param model IDODataExchangeModel 手环主动发起暂停 APP需要给手环发送运动数据, errorCode 这个属性需要赋值
1088
+ * IDODataExchangeModel The bracelet initiates a pause. The APP needs to send motion data to the bracelet. The errorCode attribute needs to be assigned.
1089
+ * @param appBlePauseCallback 手环发起暂停回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1090
+ * The bracelet initiates a pause callback (errorCode: 0 is successfully transmitted, other values are errors, and error code str can be obtained according to IDOErrorCodeToStr)
1091
+ */
1092
+ + (void)appBlePauseReplyCommand:(IDODataExchangeModel *_Nullable)model
1093
+ appBlePauseCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))appBlePauseCallback;
1094
+
1095
+
1096
+ /**
1097
+ * @brief app 发起运动恢复 | app initiates motion recovery
1098
+ * @param model IDODataExchangeModel 活动时间需要保持一致,才能恢复活动不然无效,当前model对象为全局时,只要开始活动记录开始时间,恢复时不需要再次给时间赋值,直接传入当前model
1099
+ * IDODataExchangeModel activity time needs to be consistent in order to restore activity or not, when the current model object is global,As soon as you start the activity
1100
+ * record start time, you don't need to assign time to the time when restoring, you can directly pass in the current model.
1101
+ * @param appRestoreCallback 运动恢复回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1102
+ * Motion recovery callback (errorCode : 0 transmission succeeded, other values are wrong, error code str can be obtained according to IDOErrorCodeToStr)
1103
+ */
1104
+ + (void)appRestoreSportCommand:(IDODataExchangeModel * _Nullable)model
1105
+ appRestoreCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))appRestoreCallback;
1106
+
1107
+ /**
1108
+ * @brief app发起的运动 手环主动恢复 | app-initiated sports bracelet active recovery
1109
+ * @param model IDODataExchangeModel 手环主动发起恢复 APP需要给手环发送运动数据, errorCode 这个属性需要赋值
1110
+ * IDODataExchangeModel The bracelet initiates recovery. The APP needs to send motion data to the bracelet. The errorCode attribute needs to be assigned.
1111
+ * @param appBleRestoreCallback 手环发起恢复回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1112
+ * The bracelet initiates a recovery callback (errorCode : 0 is successfully transmitted, other values are incorrect, and error code str can be obtained according to IDOErrorCodeToStr)
1113
+ */
1114
+ + (void)appBleRestoreReplyCommand:(IDODataExchangeModel *_Nullable)model
1115
+ appBleRestoreCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))appBleRestoreCallback;
1116
+
1117
+ /**
1118
+ * @brief app发起数据交换过程 | app initiates the data exchange process
1119
+ * @param model IDODataExchangeModel 活动时间需要保持一致,才能发送活动数据不然无效,当前model对象为全局时,只要开始活动记录开始时间,发送活动数据时不需要再次给时间赋值,
1120
+ * 只需要给 status|duration|calories|distance 这些属性需要赋值
1121
+ * IDODataExchangeModel Activity time needs to be consistent in order to send active data or it is invalid. When the current model object is global, as long as the activity
1122
+ * record start time is started, it is not necessary to assign time to the event when sending the activity data, just to status|duration|calories|distance
1123
+ * These attributes need to be assigned.
1124
+ * @param appIngCallback 运动发送数据回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1125
+ * Motion sends data callback (errorCode : 0 transmission succeeded, other values are errors, error code str can be obtained according to IDOErrorCodeToStr)
1126
+ */
1127
+ + (void)appIngSportCommand:(IDODataExchangeModel *_Nullable)model
1128
+ appIngCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))appIngCallback;
1129
+
1130
+ /**
1131
+ * @brief 手环发起运动开始 | The bracelet starts the campaign
1132
+ * @param model IDODataExchangeModel 只需要给 retCode 这个属性需要赋值
1133
+ * IDODataExchangeModel only needs to assign value to retCode property
1134
+ * @param bleStartCallback 手环发起运动开始回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1135
+ * The bracelet initiates a motion start callback (errorCode : 0 is successfully transmitted, other values are wrong, and error code str can be obtained according to IDOErrorCodeToStr)
1136
+ */
1137
+ + (void)bleStartSportCommand:(IDODataExchangeModel *_Nullable)model
1138
+ bleStartCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))bleStartCallback;
1139
+
1140
+ /**
1141
+ * @brief 手环发起运动暂停 | The bracelet initiates a motion pause
1142
+ * @param model IDODataExchangeModel 只需要给 retCode 这个属性需要赋值
1143
+ * IDODataExchangeModel only needs to assign value to retCode property
1144
+ * @param blePauseCallback 手环发起运动暂停回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1145
+ * The bracelet initiates a motion pause callback (errorCode : 0 is successfully transmitted, other values are incorrect, and error code str can be obtained according to IDOErrorCodeToStr)
1146
+ */
1147
+ + (void)blePauseSportCommand:(IDODataExchangeModel *_Nullable)model
1148
+ blePauseCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))blePauseCallback;
1149
+
1150
+ /**
1151
+ * @brief 手环发起运动恢复 | Bracelet initiates sports recovery
1152
+ * @param model IDODataExchangeModel 只需要给 retCode 这个属性需要赋值
1153
+ * IDODataExchangeModel only needs to assign value to retCode property
1154
+ * @param bleRestoreCallback 手环发起运动恢复回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1155
+ * The bracelet initiates a motion recovery callback (errorCode : 0 is successfully transmitted, other values are wrong, and error code str can be obtained according to IDOErrorCodeToStr)
1156
+ */
1157
+ + (void)bleRestoreSportCommand:(IDODataExchangeModel *_Nullable)model
1158
+ bleRestoreCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))bleRestoreCallback;
1159
+
1160
+ /**
1161
+ * @brief 手环发起运动结束 | The bracelet starts the campaign
1162
+ * @param model IDODataExchangeModel 只需要给 retCode 这个属性需要赋值
1163
+ * IDODataExchangeModel only needs to assign value to retCode property
1164
+ * @param bleEndCallback 手环发起运动结束回调 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1165
+ * The bracelet initiates a motion end callback (errorCode : 0 is successfully transmitted, other values are errors, and error code str can be obtained according to IDOErrorCodeToStr)
1166
+ */
1167
+ + (void)bleEndSportCommand:(IDODataExchangeModel *_Nullable)model
1168
+ bleEndCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))bleEndCallback;
1169
+
1170
+ /**
1171
+ * @brief 手环发起运动发送数据 | The bracelet initiates a motion to send data
1172
+ * @param model IDODataExchangeModel 只需要给 distance 这个属性需要赋值
1173
+ * @param bleIngCallback 手环发起运动发送数据 (errorCode : 0 传输成功,其他值为错误,可以根据 IDOErrorCodeToStr 获取错误码str)
1174
+ */
1175
+ + (void)bleIngSportCommand:(IDODataExchangeModel *_Nullable)model
1176
+ bleIngCallback:(void (^_Nullable)(IDODataExchangeModel * _Nullable model,int errorCode))bleIngCallback;
1177
+
1178
+ @end