Blame view

HDFwear/20231111ReadMe.md 853 Bytes
c500670f   jason   feat:setNotDistur...
1
2
3
4
5
  接口说明
  
  接口实现
  BluetoothManager+Function
  
d8bf97cb   jason   docs:newSetTime
6
7
8
9
10
  设置时间
      func newSetTime(completion: ((_ error: Int?) -> ())? = nil)
      发送: [237, 126, 0, 1, 0, 9, 0, 1, 0, 7, 23, 11, 12, 20, 14, 35, 7, 28, 46]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 9, 0, 76, 235]
      
c500670f   jason   feat:setNotDistur...
11
12
13
14
15
  设置勿扰模式
      func newSetNotDisturb(remind: RemindModel, completion: @escaping(_ error: Int?) -> ())
      发送: [237, 126, 0, 1, 0, 39, 0, 1, 0, 5, 0, 22, 0, 22, 0, 214, 52]
      接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 39, 0, 105, 2]
  
d00927dc   jason   feat:heart rate
16
17
18
19
20
21
22
  拉取心跳数据
      func getHeartRateHistoryData(closure: HeartRateClosure? = nil)
      发送: [237, 126, 0, 1, 0, 40, 0, 1, 0, 1, 1, 128, 205]
      
  接收心跳数据
      func parseHeartRateData (_ content: [UInt8])
      接收: [237, 126, 0, 1, 128, 22, 0, 1, 0, 5, 101, 73, 152, 158, 60, 178, 104]