Config option to disable MDNS

This commit is contained in:
Mathieu Maret 2016-06-01 01:16:01 +02:00
parent 4d38c2c7a5
commit e97777eed3
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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