From 8c49e5a6c4ce26d1424e6e1664684fec82ccc1df Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 13 Nov 2023 20:08:11 +0800 Subject: [PATCH] feat:find phone --- HDFwear/20231111ReadMe.md | 5 +++++ HDFwear/Setting/SettingViewController.swift | 4 ++++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/HDFwear/20231111ReadMe.md b/HDFwear/20231111ReadMe.md index 42ece05..efdef17 100644 --- a/HDFwear/20231111ReadMe.md +++ b/HDFwear/20231111ReadMe.md @@ -28,3 +28,8 @@ BluetoothManager+Function 接收血氧数据 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] diff --git a/HDFwear/Setting/SettingViewController.swift b/HDFwear/Setting/SettingViewController.swift index 9b8fea6..5472544 100644 --- a/HDFwear/Setting/SettingViewController.swift +++ b/HDFwear/Setting/SettingViewController.swift @@ -514,6 +514,10 @@ extension SettingViewController: BluetoothSyncDelegate { // DeviceIsCharging = isCharging updateBattery(value, isCharging: false) } + + func didReceiveFindPhoneCommand(value: Int) { + MBProgressHUD.show("did receive find phone command"); + } } extension SettingViewController: BluetoothManagerDelegate { func centralManagerDidUpdateState(_ state: Int) { -- libgit2 0.21.4