ircDDBGateway/TimeServer
Andy Taylor fc571c1e13 Fix MQTT implementation, align with DStarGateway, and add documentation
MQTT Implementation (aligned with DStarGateway / MMDVMHost):
- Rewrite MQTTConnection with mosquitto_loop_stop() fix to prevent
  background thread zombies on shutdown
- Add MQTT authentication support (mqttAuth, mqttUsername, mqttPassword)
- Add configurable client name (mqttName) used as topic prefix
- Use PID-based client IDs (avoids time_t truncation on 32-bit ARM)
- Use std::string interface throughout (no wxString in MQTT layer)
- Align JSON link status fields with DStarGateway (repeater/reflector/
  protocol/reason/action) for dashboard compatibility

Shutdown Safety:
- Add MQTTLogFinalise() calls to both daemon (IRCDDBGatewayAppD::run)
  and GUI (IRCDDBGatewayApp::OnExit) shutdown paths to ensure clean
  MQTT disconnection and thread cleanup before process exit

JSON Status Events:
- Update all ~30 WriteJSON call sites across DPlus, DExtra, DCS, and
  CCS protocol handlers to use new function signatures
- Simplify IRCDDBGatewayThread::writeJSONStatus to delegate to
  WriteJSONStatus

Config Parser Hardening:
- Add empty-line crash guard to IRCDDBGatewayConfig, TimerControlConfig,
  and TimeServerConfig parsers (str.IsEmpty() check before GetChar)

Documentation:
- Add MQTT.md with topic structure, JSON examples, and troubleshooting
- Add CONFIGURATION.md with full reference for all config files
- Add BUILD.md with build parameters and dependency information
- Add linux/ example configs for ircddbgateway, timeserver, timercontrol
- Modernise README.md with feature list and DStarGateway recommendation
2026-03-08 21:34:45 +00:00
..
Makefile Adds DESTDIR build variable 2020-05-28 23:13:19 +02:00
MakefileGUI Add empty targets for dependencies in sub make file 2018-11-11 18:35:30 +01:00
TimeServer.vcxproj Merge branch 'master' into mqtt 2026-02-18 17:56:52 +00:00
TimeServer.vcxproj.filters Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerAnnouncementsSet.cpp Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerAnnouncementsSet.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerApp.cpp The beginning of Linux build support. 2018-05-15 19:32:38 +01:00
TimeServerApp.h The beginning of Linux build support. 2018-05-15 19:32:38 +01:00
TimeServerConfig.cpp Fix MQTT implementation, align with DStarGateway, and add documentation 2026-03-08 21:34:45 +00:00
TimeServerConfig.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerD.cpp Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerD.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerDefs.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerFrame.cpp The beginning of Linux build support. 2018-05-15 19:32:38 +01:00
TimeServerFrame.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerGatewaySet.cpp Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerGatewaySet.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerLogRedirect.cpp Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerLogRedirect.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerPreferences.cpp Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerPreferences.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerThread.cpp Merge pull request #69 from narspt/patch-1 2021-06-03 19:22:53 +01:00
TimeServerThread.h Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerThreadHelper.cpp Initial commit. 2018-05-09 19:23:17 +01:00
TimeServerThreadHelper.h Initial commit. 2018-05-09 19:23:17 +01:00