feat: Update project version to 11 and enhance BLE packet logging with RSSI and SNR information

This commit is contained in:
Janez T
2025-10-16 14:20:40 +02:00
parent 9ae3acb3dc
commit 9c1922b4fd
10 changed files with 35 additions and 18 deletions

View File

@@ -587,7 +587,7 @@ class _HomeScreenState extends State<HomeScreen>
Text(
'${deviceInfo.signalRssi}dBm',
style: TextStyle(
fontSize: 12,
fontSize: 14,
color: _getSignalColor(deviceInfo.signalRssi!),
fontWeight: FontWeight.w500,
),

View File

@@ -515,6 +515,17 @@ class _PacketLogCard extends StatelessWidget {
icon: Icons.tag,
label: log.opcodeDescription,
),
// Show RSSI and SNR for LOG_RX_DATA packets
if (log.logRxDataInfo?.rssiDbm != null)
_InfoChip(
icon: Icons.signal_cellular_alt,
label: 'RSSI: ${log.logRxDataInfo!.rssiDbm} dBm',
),
if (log.logRxDataInfo?.snrDb != null)
_InfoChip(
icon: Icons.waves,
label: 'SNR: ${log.logRxDataInfo!.snrDb!.toStringAsFixed(1)} dB',
),
],
),
],