mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-29 06:06:40 +00:00
Fix config topic
This commit is contained in:
parent
c71e1111e0
commit
b7e95dccb7
@ -11,6 +11,11 @@
|
|||||||
// #define __FlashStringHelper char
|
// #define __FlashStringHelper char
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
#ifdef ARDUINO
|
||||||
|
#include "PubSubClient.h"
|
||||||
|
extern PubSubClient mqttClient;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
MQTT_ERR_OK = 0,
|
MQTT_ERR_OK = 0,
|
||||||
MQTT_ERR_DISABLED = -1,
|
MQTT_ERR_DISABLED = -1,
|
||||||
@ -51,6 +56,10 @@ bool mqttSetConfig(const JsonObject& settings);
|
|||||||
#define MQTT_TOPIC_COMMAND "command"
|
#define MQTT_TOPIC_COMMAND "command"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MQTT_TOPIC_CONFIG
|
||||||
|
#define MQTT_TOPIC_CONFIG "config"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef MQTT_TOPIC_DISCOVERY
|
#ifndef MQTT_TOPIC_DISCOVERY
|
||||||
#define MQTT_TOPIC_DISCOVERY "discovery"
|
#define MQTT_TOPIC_DISCOVERY "discovery"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user