mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Added MQTT auto discovery #180
This commit is contained in:
parent
f3e3553dad
commit
79c7ecccac
10 changed files with 156 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue