From 37775d8edeb01c0cd05b89a3f34349271dcc7e56 Mon Sep 17 00:00:00 2001 From: daifengyi Date: Fri, 30 Jun 2023 15:40:31 +0800 Subject: [PATCH] feat:add cmd --- HDFwear/Tools/Bluetooth+Types.swift | 3 +++ HDFwear/Tools/BluetoothManager+Function.swift | 4 ++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/HDFwear/Tools/Bluetooth+Types.swift b/HDFwear/Tools/Bluetooth+Types.swift index 30c8d6f..2bc375f 100644 --- a/HDFwear/Tools/Bluetooth+Types.swift +++ b/HDFwear/Tools/Bluetooth+Types.swift @@ -115,6 +115,9 @@ enum SetCmd: UInt8 { } enum NewCmd: UInt8 { +// case response = 0x01 +// case queryDevice = 0x02 +// case ota = 0x07 case setTime = 0x09 case setTimeFormat = 0x10 case setTemperatureUnit = 0x11 diff --git a/HDFwear/Tools/BluetoothManager+Function.swift b/HDFwear/Tools/BluetoothManager+Function.swift index a96e9d9..eb46e21 100644 --- a/HDFwear/Tools/BluetoothManager+Function.swift +++ b/HDFwear/Tools/BluetoothManager+Function.swift @@ -322,6 +322,10 @@ extension BluetoothManager { print("睡眠数据上报") case 0x8020:// 历史压力数据上报 print("历史压力数据上报") + case 0x8021:// 分时段计步数据上报 + print("分时段计步数据上报") + case 0x8022:// 遥控拍照 + print("遥控拍照") default: break } -- libgit2 0.21.4