Commit 37775d8edeb01c0cd05b89a3f34349271dcc7e56
1 parent
dd1edac2
feat:add cmd
Showing
2 changed files
with
7 additions
and
0 deletions
HDFwear/Tools/Bluetooth+Types.swift
@@ -115,6 +115,9 @@ enum SetCmd: UInt8 { | @@ -115,6 +115,9 @@ enum SetCmd: UInt8 { | ||
115 | } | 115 | } |
116 | 116 | ||
117 | enum NewCmd: UInt8 { | 117 | enum NewCmd: UInt8 { |
118 | +// case response = 0x01 | ||
119 | +// case queryDevice = 0x02 | ||
120 | +// case ota = 0x07 | ||
118 | case setTime = 0x09 | 121 | case setTime = 0x09 |
119 | case setTimeFormat = 0x10 | 122 | case setTimeFormat = 0x10 |
120 | case setTemperatureUnit = 0x11 | 123 | case setTemperatureUnit = 0x11 |
HDFwear/Tools/BluetoothManager+Function.swift
@@ -322,6 +322,10 @@ extension BluetoothManager { | @@ -322,6 +322,10 @@ extension BluetoothManager { | ||
322 | print("睡眠数据上报") | 322 | print("睡眠数据上报") |
323 | case 0x8020:// 历史压力数据上报 | 323 | case 0x8020:// 历史压力数据上报 |
324 | print("历史压力数据上报") | 324 | print("历史压力数据上报") |
325 | + case 0x8021:// 分时段计步数据上报 | ||
326 | + print("分时段计步数据上报") | ||
327 | + case 0x8022:// 遥控拍照 | ||
328 | + print("遥控拍照") | ||
325 | default: | 329 | default: |
326 | break | 330 | break |
327 | } | 331 | } |