diff --git a/src/mqtt/hasp_mqtt.h b/src/mqtt/hasp_mqtt.h index 52e08715..8f090bba 100644 --- a/src/mqtt/hasp_mqtt.h +++ b/src/mqtt/hasp_mqtt.h @@ -11,6 +11,11 @@ // #define __FlashStringHelper char // #endif +#ifdef ARDUINO +#include "PubSubClient.h" +extern PubSubClient mqttClient; +#endif + typedef enum { MQTT_ERR_OK = 0, MQTT_ERR_DISABLED = -1, @@ -51,6 +56,10 @@ bool mqttSetConfig(const JsonObject& settings); #define MQTT_TOPIC_COMMAND "command" #endif +#ifndef MQTT_TOPIC_CONFIG +#define MQTT_TOPIC_CONFIG "config" +#endif + #ifndef MQTT_TOPIC_DISCOVERY #define MQTT_TOPIC_DISCOVERY "discovery" #endif