20240110ReadMe.md 3.16 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 newGetBatteryData( completion: ((_ error: Int?) -> ())? = nil) { 发送: [237, 126, 0, 1, 0, 40, 0, 1, 0, 1, 9, 1, 197] 接收: [237, 126, 0, 1, 128, 16, 0, 1, 0, 1, 85, 19, 139]

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

设置压力自动检测 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]

设置血氧自动检测 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]

设置用户信息 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]

设置查找手表 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]