Blame view

HDFwear/20240110ReadMe.md 3.16 KB
0a6a1505   jason   feat:new referenc...
1
2
3
4
5
6
7
  some APIs have been done before, go through and check them, update some API references here which will be removed from old document
  
  接口说明:
  
  接口实现
  BluetoothManager+Function
  
1b6b2401   jason   feat:api timeForm...
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  设置时间格式
      func newSetTimeFormat(format: TimeFormat, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 16, 0, 1, 0, 1, 1, 162, 3]
      接收: [237, 126, 0, 1, 128, 1, 0, 29, 0, 5, 0, 1, 0, 16, 0, 217, 3]
      
  设置公英制
      func newSetDistanceUnit(unit: DistanceUnit, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 18, 0, 1, 0, 1, 1, 41, 67]
      接收: [237, 126, 0, 1, 128, 1, 0, 30, 0, 5, 0, 1, 0, 18, 0, 119, 20]
      
  设置抬腕唤醒
      func newSetWristSense(bool: Bool, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 19, 0, 1, 0, 1, 0, 124, 194]
      接收: [237, 126, 0, 1, 128, 1, 0, 32, 0, 5, 0, 1, 0, 19, 0, 156, 232]
6535c9df   jason   feat:newGetBatery...
22
23
  
  拉取电量数据
dbce22d2   jason   feat:get battery ...
24
      func newGetBatteryData( completion: ((_ error: Int?) -> ())? = nil) {
6535c9df   jason   feat:newGetBatery...
25
      发送: [237, 126, 0, 1, 0, 40, 0, 1, 0, 1, 9, 1, 197]
dbce22d2   jason   feat:get battery ...
26
      接收: [237, 126, 0, 1, 128, 16, 0, 1, 0, 1, 85, 19, 139]
c4da5319   jason   feat:newSetLanguage
27
28
29
30
31
32
  
  设置语言
      func newSetLanguage(lan: UInt8, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 22, 0, 1, 0, 1, 0, 63, 195]
      发送: [237, 126, 0, 1, 0, 22, 0, 1, 0, 1, 0, 63, 195]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 22, 0, 95, 166]
d3d70671   jason   feat:newSetRestore
33
34
35
36
37
  
  设置恢复出厂设置
      func newSetRestore(completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 23, 0, 1, 0, 0, 19, 107]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 23, 0, 108, 151]
c7f49054   jason   feat: rest & exer...
38
39
40
41
42
43
44
45
46
47
  
  设置安静心率预警
      func newSetRestHeartRateRemind(bool:Bool, minHr: UInt8, maxHr: UInt8, completion: ((_ error: Int?) -> ())? = nil) {
      发送: [237, 126, 0, 1, 0, 24, 0, 1, 0, 3, 1, 60, 90, 3, 138]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 24, 0, 124, 169]
      
  设置运动心率预警
      func newSetExerciseHeartRateRemind(bool:Bool, minHr: UInt8, maxHr: UInt8, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 25, 0, 1, 0, 3, 1, 110, 150, 52, 68]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 25, 0, 79, 152]
63416679   jason   feat:pressure aut...
48
49
50
51
52
  
  设置压力自动检测
      func newSetPressureAutoDetect(bool: Bool, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 36, 0, 1, 0, 1, 1, 139, 46]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 36, 0, 60, 81]
aec670bc   jason   feat:blood oxygen...
53
54
55
56
57
  
  设置血氧自动检测
      func newSetBloodOxygenAutoDetect(bool: Bool, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 37, 0, 1, 0, 1, 1, 206, 142]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 37, 0, 15, 96]
c8e3bebb   jason   feat:set user info
58
59
60
61
62
  
  设置用户信息
      func newSetUserInfo(_ user: UserInfoModel, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 38, 0, 1, 0, 6, 0, 65, 0, 175, 1, 24, 45, 240]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 38, 0, 90, 51]
5b11ed23   jason   feat:find watch
63
64
65
66
67
      
  设置查找手表
      func newSetFindWatch(bool: Bool, completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 32, 0, 1, 0, 1, 1, 141, 143]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 32, 0, 240, 149]