From b7e95dccb7a127bc863958aff7b1e7ea3eba0528 Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Thu, 27 May 2021 18:36:35 +0200 Subject: [PATCH] Fix config topic --- src/mqtt/hasp_mqtt.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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