20240110ReadMe.md 2.2 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]

设置语言 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]

设置恢复出厂设置 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]

设置安静心率预警 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]