diff --git a/WifiControlSensor/WifiControlSensor.ino b/WifiControlSensor/WifiControlSensor.ino index 8ab87c0..4fb4df8 100644 --- a/WifiControlSensor/WifiControlSensor.ino +++ b/WifiControlSensor/WifiControlSensor.ino @@ -110,7 +110,7 @@ void WifiSetup(int bootmode, char *confSsid, char *confPassword, char *confHost, SKETCH_DEBUG_PRINTLN(""); SKETCH_DEBUG_PRINTLN("WiFi connected"); -#ifndef CONFIG_ENABLE_POWER_SAVE +#ifndef CONFIG_DISABLE_MDNS if (!MDNS.begin(confHost)) { SKETCH_DEBUG_PRINTLN("Error setting up MDNS responder!"); while (1) { diff --git a/WifiControlSensor/config_device.h b/WifiControlSensor/config_device.h index bd31558..30ae7c7 100644 --- a/WifiControlSensor/config_device.h +++ b/WifiControlSensor/config_device.h @@ -17,9 +17,10 @@ // Enable light sleep to save some power (http://bbs.espressif.com/viewtopic.php?f=6&t=133&p=485&hilit=sleep+modem#p485) // Switch off internal LED -// Disable mDNS //#define CONFIG_ENABLE_POWER_SAVE +// Disable mDNS can also save power +//#define CONFIG_DISABLE_MDNS //Web controlled GPIO #define CONFIG_WEB_CONTROLLED_GPIO 2