mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Fix config topic
This commit is contained in:
parent
c71e1111e0
commit
b7e95dccb7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user