mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Via MQTT
This commit is contained in:
parent
c3f4923531
commit
b0272e0578
2 changed files with 10 additions and 9 deletions
|
|
@ -279,6 +279,7 @@ func upsertPositionPacket (packet: MeshPacket, context: NSManagedObjectContext)
|
|||
}
|
||||
fetchedNode[0].snr = packet.rxSnr
|
||||
fetchedNode[0].rssi = packet.rxRssi
|
||||
fetchedNode[0].viaMqtt = packet.viaMqtt
|
||||
fetchedNode[0].positions = mutablePositions.copy() as? NSOrderedSet
|
||||
|
||||
do {
|
||||
|
|
|
|||
|
|
@ -89,14 +89,21 @@ struct NodeListItem: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
if node.channel > 0 {
|
||||
HStack {
|
||||
HStack {
|
||||
if node.channel > 0 {
|
||||
Image(systemName: "fibrechannel")
|
||||
.font(.callout)
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Channel: \(node.channel)")
|
||||
.font(.callout)
|
||||
}
|
||||
if node.viaMqtt && connectedNode != node.num {
|
||||
Image(systemName: "network")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
.font(.callout)
|
||||
Text("Via MQTT")
|
||||
.font(.callout)
|
||||
}
|
||||
}
|
||||
if !connected {
|
||||
HStack {
|
||||
|
|
@ -129,13 +136,6 @@ struct NodeListItem: View {
|
|||
.symbolRenderingMode(.hierarchical)
|
||||
.font(.callout)
|
||||
}
|
||||
if node.viaMqtt {
|
||||
Image(systemName: "network")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
.font(.callout)
|
||||
Text("mqtt")
|
||||
.font(.caption)
|
||||
}
|
||||
}
|
||||
.padding(.top, 3)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue