mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Adjust priority, send nodedb reset locally
This commit is contained in:
parent
9511ee76f3
commit
bb0c7bbc2c
2 changed files with 3 additions and 2 deletions
|
|
@ -920,11 +920,11 @@ class BLEManager: NSObject, CBPeripheralDelegate, ObservableObject {
|
|||
public func sendNodeDBReset(fromUser: UserEntity, toUser: UserEntity) -> Bool {
|
||||
|
||||
var adminPacket = AdminMessage()
|
||||
adminPacket.nodedbReset = 10
|
||||
adminPacket.nodedbReset = 5
|
||||
|
||||
var meshPacket: MeshPacket = MeshPacket()
|
||||
meshPacket.to = UInt32(toUser.num)
|
||||
meshPacket.from = UInt32(fromUser.num)
|
||||
meshPacket.from = 0 // UInt32(fromUser.num)
|
||||
meshPacket.id = UInt32.random(in: UInt32(UInt8.max)..<UInt32.max)
|
||||
meshPacket.priority = MeshPacket.Priority.reliable
|
||||
meshPacket.wantAck = true
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ struct MapViewSwiftUI: UIViewRepresentable {
|
|||
annotationView.glyphText = "📟"
|
||||
annotationView.clusteringIdentifier = "nodeGroup"
|
||||
annotationView.markerTintColor = UIColor(.indigo)
|
||||
annotationView.displayPriority = .required
|
||||
annotationView.titleVisibility = .adaptive
|
||||
let leftIcon = UIImageView(image: annotationView.glyphText?.image())
|
||||
leftIcon.backgroundColor = UIColor(.indigo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue