ENABLE_MQTT c++ macro definition (#1546)

* macro

* 2

* 2

* delete jomjol_mqtt from CMakeLists

* mqtt macro

* final
This commit is contained in:
Nicolas Liaudat
2022-12-11 16:04:56 +01:00
committed by GitHub
parent 3f85f9b755
commit 286915b647
15 changed files with 115 additions and 38 deletions

View File

@@ -1,3 +1,4 @@
#ifdef ENABLE_MQTT
#include "interface_mqtt.h"
//#define LOG_LOCAL_LEVEL ESP_LOG_DEBUG
@@ -346,3 +347,4 @@ void MQTTdestroySubscribeFunction(){
subscribeFunktionMap = NULL;
}
}
#endif //ENABLE_MQTT

View File

@@ -1,3 +1,4 @@
#ifdef ENABLE_MQTT
#ifndef INTERFACE_MQTT_H
#define INTERFACE_MQTT_H
@@ -22,5 +23,5 @@ void MQTTdestroySubscribeFunction();
void MQTTconnected();
void MQTTdisable();
#endif //INTERFACE_MQTT_H
#endif //INTERFACE_MQTT_H
#endif //#ENABLE_MQTT

View File

@@ -1,3 +1,4 @@
#ifdef ENABLE_MQTT
#include <string>
#include <sstream>
#include <iomanip>
@@ -243,3 +244,5 @@ void mqttServer_setMainTopic( std::string _maintopic) {
std::string mqttServer_getMainTopic() {
return maintopic;
}
#endif //ENABLE_MQTT

View File

@@ -1,3 +1,5 @@
#ifdef ENABLE_MQTT
#include "ClassFlowDefineTypes.h"
#define LWT_TOPIC "connection"
@@ -17,4 +19,6 @@ void register_server_mqtt_uri(httpd_handle_t server);
void publishSystemData();
std::string getTimeUnit(void);
void GotConnected(std::string maintopic, int SetRetainFlag);
void GotConnected(std::string maintopic, int SetRetainFlag);
#endif //ENABLE_MQTT