Config option to disable MDNS
This commit is contained in:
parent
4d38c2c7a5
commit
e97777eed3
@ -110,7 +110,7 @@ void WifiSetup(int bootmode, char *confSsid, char *confPassword, char *confHost,
|
|||||||
SKETCH_DEBUG_PRINTLN("");
|
SKETCH_DEBUG_PRINTLN("");
|
||||||
SKETCH_DEBUG_PRINTLN("WiFi connected");
|
SKETCH_DEBUG_PRINTLN("WiFi connected");
|
||||||
|
|
||||||
#ifndef CONFIG_ENABLE_POWER_SAVE
|
#ifndef CONFIG_DISABLE_MDNS
|
||||||
if (!MDNS.begin(confHost)) {
|
if (!MDNS.begin(confHost)) {
|
||||||
SKETCH_DEBUG_PRINTLN("Error setting up MDNS responder!");
|
SKETCH_DEBUG_PRINTLN("Error setting up MDNS responder!");
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -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)
|
// 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
|
// Switch off internal LED
|
||||||
// Disable mDNS
|
|
||||||
//#define CONFIG_ENABLE_POWER_SAVE
|
//#define CONFIG_ENABLE_POWER_SAVE
|
||||||
|
|
||||||
|
// Disable mDNS can also save power
|
||||||
|
//#define CONFIG_DISABLE_MDNS
|
||||||
|
|
||||||
//Web controlled GPIO
|
//Web controlled GPIO
|
||||||
#define CONFIG_WEB_CONTROLLED_GPIO 2
|
#define CONFIG_WEB_CONTROLLED_GPIO 2
|
||||||
|
Loading…
Reference in New Issue
Block a user