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

+2
View File
@@ -254,6 +254,7 @@ class Reflector : public sigc::trackable
const std::vector<uint8_t>& audio);
void forwardFlushToSatellitesExcept(SatelliteLink* except, uint32_t tg);
void publishRxUpdate(ReflectorClient* client);
void onClientAuthenticated(const std::string& callsign, uint32_t tg,
const std::string& ip);
void onTrunkStateChanged(const std::string& section,
@@ -351,6 +352,7 @@ class Reflector : public sigc::trackable
void cfgUpdated(const std::string& section, const std::string& tag);
void onTrunkTalkerUpdated(uint32_t tg, std::string old_cs,
std::string new_cs);
void refreshStatus(void);
void initTrunkLinks(void);
void initTrunkServer(void);
void trunkClientConnected(Async::FramedTcpConnection* con);