parent
970c790558
commit
befcebbe9c
1 changed files with 7 additions and 1 deletions
|
@ -333,7 +333,8 @@ void setup() {
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
// Setup: MDNS responder
|
// Setup: MDNS responder
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
MDNS.begin(HOSTNAME);
|
bool mdns_result = MDNS.begin(HOSTNAME);
|
||||||
|
|
||||||
DBG_OUTPUT_PORT.print("Open http://");
|
DBG_OUTPUT_PORT.print("Open http://");
|
||||||
DBG_OUTPUT_PORT.print(WiFi.localIP());
|
DBG_OUTPUT_PORT.print(WiFi.localIP());
|
||||||
DBG_OUTPUT_PORT.println("/ to open McLighting.");
|
DBG_OUTPUT_PORT.println("/ to open McLighting.");
|
||||||
|
@ -566,6 +567,11 @@ void setup() {
|
||||||
|
|
||||||
server.begin();
|
server.begin();
|
||||||
|
|
||||||
|
// Start MDNS service
|
||||||
|
if (mdns_result) {
|
||||||
|
MDNS.addService("http", "tcp", 80);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_STATE_SAVE
|
#ifdef ENABLE_STATE_SAVE
|
||||||
// Load state string from EEPROM
|
// Load state string from EEPROM
|
||||||
String saved_state_string = readEEPROM(256, 32);
|
String saved_state_string = readEEPROM(256, 32);
|
||||||
|
|
Loading…
Reference in a new issue