20231111ReadMe.md 1.29 KB

接口说明

接口实现 BluetoothManager+Function

设置时间 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]

设置勿扰模式 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]

拉取心跳数据 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]

拉取血氧数据 func getBloodOxygenHistoryData(closure: BloodOxygenClosure? = nil) 发送: [237, 126, 0, 1, 0, 40, 0, 1, 0, 1, 2, 176, 174]

接收血氧数据 func parseBlooodOxygenData (_ content: [UInt8]) 接收: [237, 126, 0, 1, 128, 23, 0, 1, 0, 5, 101, 73, 152, 158, 90, 209, 77]

接收查找手机 消息ID 0x8015 触发BluetoothSyncDelegate中的didReceiveFindPhoneCommand 接收: [237, 126, 0, 1, 128, 21, 0, 1, 0, 1, 1, 74, 251]