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