Add MQTT RX status events and fix periodic status publishing

Periodic MQTT status was missing dynamic fields (trunks, cluster_tgs,
local_prefix, etc.) because they were only rebuilt during HTTP requests.
Extract status-building into refreshStatus() called from both paths.

Add per-client RX status MQTT events (client/{callsign}/rx) published on
every signal strength update, supporting multiple receivers per node.
This commit is contained in:
Audric committed 2026-04-09 12:59:52 +02:00
1 parent 4a9cba6edb
commit a2eefac1f2
8 files changed
+86 -18

No files matched your search

+3
View File
@@ -32,6 +32,9 @@ class MqttPublisher
const std::string& host, uint16_t port);
void onTrunkDown(const std::string& section, const std::string& direction);
// RX status update (per-client, all receivers)
void onRxUpdate(const std::string& callsign, const Json::Value& rx_json);
// Periodic full status
void publishFullStatus(const Json::Value& status);