20240110ReadMe.md 1.13 KB

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

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

拉取电量数据 func newGetBateryData( completion: ((_ error: Int?) -> ())? = nil) { 发送: [237, 126, 0, 1, 0, 40, 0, 1, 0, 1, 9, 1, 197] 接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 128, 16, 98, 130, 190]