Publish the log data via MQTT topics $NAME/log/$LEVEL.

This commit is contained in:
Jonathan Naylor
2022-11-27 20:27:44 +00:00
parent 3202d73ce5
commit 96364136d9
14 changed files with 288 additions and 33 deletions

13
Conf.h
View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015-2021 by Jonathan Naylor G4KLX
* Copyright (C) 2015-2022 by Jonathan Naylor G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -56,6 +56,12 @@ public:
std::string getLogFileRoot() const;
bool getLogFileRotate() const;
// The MQTT section
std::string getMQTTHost() const;
unsigned short getMQTTPort() const;
unsigned int getMQTTKeepalive() const;
std::string getMQTTName() const;
// The CW ID section
bool getCWIdEnabled() const;
unsigned int getCWIdTime() const;
@@ -395,6 +401,11 @@ private:
std::string m_logFileRoot;
bool m_logFileRotate;
std::string m_mqttHost;
unsigned short m_mqttPort;
unsigned int m_mqttKeepalive;
std::string m_mqttName;
bool m_cwIdEnabled;
unsigned int m_cwIdTime;
std::string m_cwIdCallsign;