MQTT can now be disabled via MQTT_ENABLE

This commit is contained in:
2019-06-06 06:43:50 +02:00
parent 158847d4c4
commit f7fc459095
3 changed files with 20 additions and 9 deletions

View File

@ -1,5 +1,7 @@
#ifndef my_mqtt_H
#define my_mqtt_H
#pragma once
#include "config.h"
#ifdef MQTT_ENABLE
#include <PubSubClient.h>
#include <Arduino.h>
@ -27,4 +29,4 @@ void mqtt_log_send(const char* message);
extern String mqtt_log_str;
#endif // mqtt_H
#endif // MQTT_ENABLE