Files
meshcore-bot/modules/service_plugins
Treehouse-00 f45124b6a6 feat(packet_capture): include the radio's packet counters in status stats
refresh_stats() asks the radio for core and radio stats only, so status
messages carry no packet counters, and dashboards that show an
observer's received and sent counts have none for the bot. The service
was ported from meshcore-packet-capture in December 2025;
packet-capture added packet stats in June 2026 (3699420), after the
port.

Fetch them with get_stats_packets() the same way as the other two, and
publish them as meshcore-packet-capture does: the library's own keys
(recv, sent, flood_tx, direct_tx, flood_rx, direct_rx, recv_errors)
plus packets_received and packets_sent, the names
meshcore-packet-capture and openhop_repeater publish. The status
example in docs/packet-capture.md showed rx_packets and tx_packets,
names the bot never published; it now shows the real ones.

get_stats_packets() is in every meshcore release the bot allows: it
arrived in 2.2.8 with the core and radio commands. Companion firmware
answers all three from 1.11.0. Older firmware rejects the request with
an immediate error, as it already rejects the other two.
2026-11-01 16:18:10 -08:00
..