Fix for MDNS reponder

https://github.com/toblum/McLighting/issues/85
This commit is contained in:
Tobias Blum 2018-01-20 22:07:37 +01:00
parent 970c790558
commit befcebbe9c

View file

@ -333,7 +333,8 @@ void setup() {
// ***************************************************************************
// Setup: MDNS responder
// ***************************************************************************
MDNS.begin(HOSTNAME);
bool mdns_result = MDNS.begin(HOSTNAME);
DBG_OUTPUT_PORT.print("Open http://");
DBG_OUTPUT_PORT.print(WiFi.localIP());
DBG_OUTPUT_PORT.println("/ to open McLighting.");
@ -566,6 +567,11 @@ void setup() {
server.begin();
// Start MDNS service
if (mdns_result) {
MDNS.addService("http", "tcp", 80);
}
#ifdef ENABLE_STATE_SAVE
// Load state string from EEPROM
String saved_state_string = readEEPROM(256, 32);