Added MQTT auto discovery #180

This commit is contained in:
Robert Strouse 2023-10-28 11:39:42 -07:00
parent f3e3553dad
commit 79c7ecccac
10 changed files with 156 additions and 9 deletions

View file

@ -131,12 +131,14 @@ class SecuritySettings: BaseSettings {
class MQTTSettings: BaseSettings {
public:
bool enabled = false;
bool pubDisco = false;
char hostname[65] = "ESPSomfyRTS";
char protocol[10] = "mqtt://";
uint16_t port = 1883;
char username[33] = "";
char password[33] = "";
char rootTopic[65] = "";
char discoTopic[65] = "homeassistant";
bool begin();
bool save();
bool load();