Commit 5d7b946068cefca0a1124d6bf3f6ae23faa22e5f

Authored by jason
1 parent 989b9287

feat:remote camera

HDFwear.xcodeproj/project.pbxproj
... ... @@ -280,6 +280,7 @@
280 280 6CFEEBC02773353700621863 /* BOReferenceVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CFEEBBF2773353700621863 /* BOReferenceVC.swift */; };
281 281 6CFEEBC22773354500621863 /* HRReferenceVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CFEEBC12773354500621863 /* HRReferenceVC.swift */; };
282 282 6CFEEBC42773355700621863 /* SleepReferenceVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6CFEEBC32773355700621863 /* SleepReferenceVC.swift */; };
  283 + 844959782B48EF900029E2E0 /* BluetoothManager+Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 844959772B48EF900029E2E0 /* BluetoothManager+Deprecated.swift */; };
283 284 847482762B03793C0004F0C2 /* NewWeatherModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 847482752B03793C0004F0C2 /* NewWeatherModel.swift */; };
284 285 847672B82B074E43007DC2DE /* NewBeiDouContactModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 847672B72B074E43007DC2DE /* NewBeiDouContactModel.swift */; };
285 286 B212F1FD2A14CE0400781D59 /* LaunchSetting.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = B212F1FF2A14CE0400781D59 /* LaunchSetting.storyboard */; };
... ... @@ -654,6 +655,7 @@
654 655 6CFEEBBF2773353700621863 /* BOReferenceVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BOReferenceVC.swift; sourceTree = "<group>"; };
655 656 6CFEEBC12773354500621863 /* HRReferenceVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HRReferenceVC.swift; sourceTree = "<group>"; };
656 657 6CFEEBC32773355700621863 /* SleepReferenceVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SleepReferenceVC.swift; sourceTree = "<group>"; };
  658 + 844959772B48EF900029E2E0 /* BluetoothManager+Deprecated.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "BluetoothManager+Deprecated.swift"; sourceTree = "<group>"; };
657 659 847482752B03793C0004F0C2 /* NewWeatherModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewWeatherModel.swift; sourceTree = "<group>"; };
658 660 847672B72B074E43007DC2DE /* NewBeiDouContactModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewBeiDouContactModel.swift; sourceTree = "<group>"; };
659 661 847D1C4A2B009FAC0097A96E /* 20231111ReadMe.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = 20231111ReadMe.md; sourceTree = "<group>"; };
... ... @@ -1108,6 +1110,7 @@
1108 1110 isa = PBXGroup;
1109 1111 children = (
1110 1112 6C411EDE275DE737009B2E02 /* BluetoothManager.swift */,
  1113 + 844959772B48EF900029E2E0 /* BluetoothManager+Deprecated.swift */,
1111 1114 6C1F987E279BF0AA00C0C3BA /* BluetoothManager+Set.swift */,
1112 1115 B279A3792A4AC2F800A7C7B6 /* BluetoothManager+Function.swift */,
1113 1116 6C411EE4275DFF37009B2E02 /* Bluetooth+Types.swift */,
... ... @@ -1589,6 +1592,7 @@
1589 1592 6C51207C2797A6D7006F8B64 /* UnbindRemindVC.swift in Sources */,
1590 1593 6C1B7EAB27B7977000DB9D1C /* NFCAnalogVC.swift in Sources */,
1591 1594 6C34A23C276D7EA900849087 /* MineViewController.swift in Sources */,
  1595 + 844959782B48EF900029E2E0 /* BluetoothManager+Deprecated.swift in Sources */,
1592 1596 6C41D0BD275F5DAD00747BE4 /* LoaderLayer.swift in Sources */,
1593 1597 6C11C60027CF723400B6BEFF /* PrivacyViewController.swift in Sources */,
1594 1598 6C41D0C1275F5DAD00747BE4 /* LoaderBallRotateAnimation.swift in Sources */,
... ...
HDFwear/20240110ReadMe.md
... ... @@ -5,6 +5,7 @@ some APIs have been done before, go through and check them, update some API refe
5 5 接口实现
6 6 BluetoothManager+Function
7 7  
  8 +发送数据类
8 9 设置时间格式
9 10 func newSetTimeFormat(format: TimeFormat, completion: ((_ error: Int?) -> ())? = nil)
10 11 发送: [237, 126, 0, 1, 0, 16, 0, 1, 0, 1, 1, 162, 3]
... ... @@ -75,3 +76,9 @@ BluetoothManager+Function
75 76 func newSetBloodOxygenLowRemind(minBo: UInt8, completion: ((_ error: Int?) -> ())? = nil)
76 77 发送: [237, 126, 0, 1, 0, 52, 0, 1, 0, 1, 80, 219, 126]
77 78 接收: [237, 126, 0, 1, 128, 1, 0, 1, 0, 5, 0, 1, 0, 52, 0, 63, 34]
  79 +
  80 +接受数据类
  81 +遥控拍照
  82 + 0x8022
  83 + 接收: [237, 126, 0, 1, 128, 34, 0, 1, 0, 1, 0, 189, 23]
  84 + 接收: [237, 126, 0, 1, 128, 34, 0, 1, 0, 1, 1, 173, 54]
... ...
HDFwear/ReadMe.txt
... ... @@ -103,9 +103,6 @@ BluetoothManager+Function
103 103 11. 找手机
104 104 0x8015
105 105  
106   -12. 遥控拍照
107   - 0x8022
108   -
109 106  
110 107  
111 108 底层指令组包
... ...
HDFwear/Tools/BluetoothManager+Deprecated.swift 0 → 100644
  1 +//
  2 +// BluetoothManager+Deprecated.swift
  3 +// HDFwear
  4 +//
  5 +// Created by admin on 2024/1/6.
  6 +//
  7 +
  8 +import Foundation
  9 +import SwiftDate
  10 +
  11 +extension BluetoothManager {
  12 +
  13 +}
... ...
HDFwear/Tools/BluetoothManager+Function.swift
... ... @@ -438,6 +438,10 @@ extension BluetoothManager {
438 438 for delegate in syncDelegateList {
439 439 delegate.didReceiveCameraCommand(status: stauts)
440 440 }
  441 + case 0x8025://手表户外运动定位轨迹
  442 + print("运动轨迹")
  443 + let content = parseContentFromBytes(bytes)
  444 +// parseStepData(content)
441 445 default:
442 446 break
443 447 }
... ...
HDFwear/Tools/BluetoothManager.swift
... ... @@ -672,7 +672,9 @@ class BluetoothManager: NSObject {
672 672 }
673 673 }
674 674  
675   - //MARK: - 解析数据
  675 + //MARK: - 解析数据- deprecatd
  676 + //MARK: -
  677 + /*
676 678 //心率
677 679 func parseHistoryHeartRate(_ bytes: [UInt8]) {
678 680 if bytes.count == 0 {
... ... @@ -1169,6 +1171,7 @@ class BluetoothManager: NSObject {
1169 1171  
1170 1172 }
1171 1173 }
  1174 + */
1172 1175 //音频结束时的回调
1173 1176 func audioServicesPlaySystemSoundCompleted(soundID: SystemSoundID) {
1174 1177 print("Completion")
... ...