mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-11 14:07:00 +03:00
ENABLE_MQTT c++ macro definition (#1546)
* macro * 2 * 2 * delete jomjol_mqtt from CMakeLists * mqtt macro * final
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user