mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
commit
952ed8f43f
2 changed files with 9 additions and 10 deletions
|
|
@ -1130,7 +1130,7 @@ class BLEManager: NSObject, ObservableObject, CBCentralManagerDelegate, CBPeriph
|
|||
adminPacket.factoryReset = 1
|
||||
|
||||
var meshPacket: MeshPacket = MeshPacket()
|
||||
meshPacket.to = UInt32(connectedPeripheral.num)
|
||||
meshPacket.to = UInt32(destNum)
|
||||
meshPacket.from = 0 //UInt32(connectedPeripheral.num)
|
||||
meshPacket.id = UInt32.random(in: UInt32(UInt8.max)..<UInt32.max)
|
||||
meshPacket.priority = MeshPacket.Priority.reliable
|
||||
|
|
@ -1150,9 +1150,9 @@ class BLEManager: NSObject, ObservableObject, CBCentralManagerDelegate, CBPeriph
|
|||
|
||||
if connectedPeripheral!.peripheral.state == CBPeripheralState.connected {
|
||||
|
||||
connectedPeripheral.peripheral.writeValue(binaryData, for: TORADIO_characteristic, type: .withResponse)
|
||||
if meshLoggingEnabled { MeshLogger.log("💾 Sent a Factory Reset for node: \(String(destNum))") }
|
||||
connectedPeripheral.peripheral.writeValue(binaryData, for: TORADIO_characteristic, type: .withResponse)
|
||||
return true
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
|
|
@ -1185,8 +1185,8 @@ class BLEManager: NSObject, ObservableObject, CBCentralManagerDelegate, CBPeriph
|
|||
if connectedPeripheral!.peripheral.state == CBPeripheralState.connected {
|
||||
|
||||
do {
|
||||
if meshLoggingEnabled { MeshLogger.log("💾 Sent a NodeDB Reset for node: \(String(destNum))") }
|
||||
connectedPeripheral.peripheral.writeValue(binaryData, for: TORADIO_characteristic, type: .withResponse)
|
||||
if meshLoggingEnabled { MeshLogger.log("💾 Sent a NodeDB Reset for node: \(String(destNum))") }
|
||||
return true
|
||||
} catch {
|
||||
print("💥 Error Sending NodeDB Reset")
|
||||
|
|
|
|||
11
README.md
11
README.md
|
|
@ -2,11 +2,10 @@
|
|||
|
||||
[](https://cla-assistant.io/meshtastic/Meshtastic-Apple)
|
||||
[](https://opencollective.com/meshtastic/)
|
||||
[](https://vercel.com?utm_source=meshtastic&utm_campaign=oss)
|
||||
|
||||
## Overview
|
||||
|
||||
A description about the project
|
||||
SwiftUI client applicaitons for iOS, iPadOS and macOS.
|
||||
|
||||
## Stats
|
||||
|
||||
|
|
@ -14,13 +13,13 @@ A description about the project
|
|||
|
||||
## OS Requirements
|
||||
|
||||
* iOS App Requires iOS 15 +
|
||||
* iPadOS App Requires iPadOS 15 +
|
||||
* Mac App Reguires macOS 12 +
|
||||
* iOS App Requires iOS 16 +
|
||||
* iPadOS App Requires iPadOS 16 +
|
||||
* Mac App Reguires macOS 13 +
|
||||
|
||||
## Code Standards
|
||||
|
||||
- Use SwiftUI
|
||||
- Use SwiftUI (Maps are an exception)
|
||||
- Use Hierarchical icons
|
||||
- Use Core Data for persistence
|
||||
- Requires SwiftLint - see https://github.com/realm/SwiftLint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue