Wifi managers improvements (#503)
* Add parameters to wifi manager: gateway name and base topic Enable to restart the ESP and erase the parameters by MQTT
This commit is contained in:
1 parent
a05fd01505
commit
4b1f09b06b
41 files changed
+308
-196
No files matched your search
@@ -93,7 +93,7 @@ void createDiscovery(char * sensor_type,
|
||||
sensor.set("device", device); //device sensor is connected to
|
||||
}
|
||||
String topic = String(discovery_Topic) + "/" + String(sensor_type) + "/" + String(unique_id) + "/config";
|
||||
pub((char *)topic.c_str(), sensor);
|
||||
pub_custom_topic((char *)topic.c_str(), sensor);
|
||||
}
|
||||
|
||||
void pubMqttDiscovery()
|
||||
|
||||
Reference in new issue
Block a user