Commit 8c49e5a6c4ce26d1424e6e1664684fec82ccc1df

Authored by jason
1 parent aa6e9631

feat:find phone

HDFwear/20231111ReadMe.md
@@ -28,3 +28,8 @@ BluetoothManager+Function @@ -28,3 +28,8 @@ BluetoothManager+Function
28 接收血氧数据 28 接收血氧数据
29 func parseBlooodOxygenData (_ content: [UInt8]) 29 func parseBlooodOxygenData (_ content: [UInt8])
30 接收: [237, 126, 0, 1, 128, 23, 0, 1, 0, 5, 101, 73, 152, 158, 90, 209, 77] 30 接收: [237, 126, 0, 1, 128, 23, 0, 1, 0, 5, 101, 73, 152, 158, 90, 209, 77]
  31 +
  32 +接收查找手机
  33 + 消息ID 0x8015
  34 + 触发BluetoothSyncDelegate中的didReceiveFindPhoneCommand
  35 + 接收: [237, 126, 0, 1, 128, 21, 0, 1, 0, 1, 1, 74, 251]
HDFwear/Setting/SettingViewController.swift
@@ -514,6 +514,10 @@ extension SettingViewController: BluetoothSyncDelegate { @@ -514,6 +514,10 @@ extension SettingViewController: BluetoothSyncDelegate {
514 // DeviceIsCharging = isCharging 514 // DeviceIsCharging = isCharging
515 updateBattery(value, isCharging: false) 515 updateBattery(value, isCharging: false)
516 } 516 }
  517 +
  518 + func didReceiveFindPhoneCommand(value: Int) {
  519 + MBProgressHUD.show("did receive find phone command");
  520 + }
517 } 521 }
518 extension SettingViewController: BluetoothManagerDelegate { 522 extension SettingViewController: BluetoothManagerDelegate {
519 func centralManagerDidUpdateState(_ state: Int) { 523 func centralManagerDidUpdateState(_ state: Int) {