mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-08-01 17:56:12 +00:00
feat: show RSSI in discover results list
Add rssi field to DiscoverResult, captured from _radio->getLastRSSI() when the discover response is received. Display format in the right column: known node → "Rpt-87" / "Snsr-92" (type + dBm) new node → "*-87" (asterisk + dBm; type already visible in "[Rpt]" label) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6249e63ec0
commit
2a9874d05d
@@ -814,6 +814,7 @@ void MyMesh::onControlDataRecv(mesh::Packet *packet) {
|
||||
r.is_known = false;
|
||||
}
|
||||
r.type = node_type;
|
||||
r.rssi = (int8_t)_radio->getLastRSSI();
|
||||
r.timestamp = getRTCClock()->getCurrentTime();
|
||||
}
|
||||
if (_ui) _ui->notify(UIEventType::newContactMessage);
|
||||
|
||||
Reference in New Issue
Block a user