Fix config topic

This commit is contained in:
fvanroie 2021-05-27 18:36:35 +02:00
parent c71e1111e0
commit b7e95dccb7

View File

@ -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