Bluetooth connect page connected radio context menu

This commit is contained in:
Garth Vander Houwen 2022-09-30 21:06:52 -07:00
parent 6ae79b6ad6
commit 68587bdba3
2 changed files with 10 additions and 5 deletions

View file

@ -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 {

View file

@ -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
}