mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Bluetooth connect page connected radio context menu
This commit is contained in:
parent
6ae79b6ad6
commit
68587bdba3
2 changed files with 10 additions and 5 deletions
|
|
@ -121,10 +121,15 @@ struct Connect: View {
|
|||
}
|
||||
.contextMenu{
|
||||
|
||||
Text("My Node Info")
|
||||
Label("Bitrate \(String(format: "%.2f", bleManager.connectedPeripheral.bitrate ?? 0.00))", systemImage: "pencil.circle")
|
||||
Text("Ch. Utilization \(String(format: "%.2f", bleManager.connectedPeripheral.channelUtilization ?? 0.00))")
|
||||
Text("Air Time \(String(format: "%.2f", bleManager.connectedPeripheral.airTime ?? 0.00))")
|
||||
Text("Num: \(String(bleManager.connectedPeripheral.num))")
|
||||
Text("Short Name: \(bleManager.connectedPeripheral.shortName)")
|
||||
Text("Long Name: \(bleManager.connectedPeripheral.longName)")
|
||||
Text("Unique Code: \(bleManager.connectedPeripheral.lastFourCode)")
|
||||
Text("Max Channels: \(String(bleManager.connectedPeripheral.maxChannels))")
|
||||
Text("Bitrate: \(String(format: "%.2f", bleManager.connectedPeripheral.bitrate ?? 0.00))")
|
||||
Text("Ch. Utilization: \(String(format: "%.2f", bleManager.connectedPeripheral.channelUtilization ?? 0.00))")
|
||||
Text("Air Time: \(String(format: "%.2f", bleManager.connectedPeripheral.airTime ?? 0.00))")
|
||||
Text("RSSI: \(bleManager.connectedPeripheral.rssi)")
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ struct MeshLog: View {
|
|||
lineCount += 1
|
||||
}
|
||||
|
||||
var startingLog = 0
|
||||
// Set the record to start with if we have more lines than the limit
|
||||
var startingLog = 0
|
||||
if lineCount > lineLimit {
|
||||
startingLog = lineCount - lineLimit
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue