MDNS is optionnal
This commit is contained in:
parent
e97777eed3
commit
04690a4c66
@ -20,8 +20,9 @@
|
|||||||
/* --------------------- MQTT ------------------------------------ */
|
/* --------------------- MQTT ------------------------------------ */
|
||||||
/* Send information to mqtt server configured in the setup mode */
|
/* Send information to mqtt server configured in the setup mode */
|
||||||
/* GPIO value configured in config_device.h can be get by */
|
/* GPIO value configured in config_device.h can be get by */
|
||||||
/* subscribing to /feeds/[HOSTNAME]/gpio/[GPIO] and modified by */
|
/* subscribing to /feeds/MQTTUSER/[HOSTNAME]/gpio/[GPIO] and */
|
||||||
/* publishing to /feeds/[HOSTNAME]/gpio/[GPIO]/set */
|
/* modified by publishin to */
|
||||||
|
/* /feeds/MQTTUSER/[HOSTNAME]/gpio/[GPIO]/set */
|
||||||
/* BMP180 will be published to /feeds/[HOSTNAME]/temperature and */
|
/* BMP180 will be published to /feeds/[HOSTNAME]/temperature and */
|
||||||
/* /feeds/[HOSTNAME]/pressure */
|
/* /feeds/[HOSTNAME]/pressure */
|
||||||
|
|
||||||
@ -110,7 +111,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_DISABLE_MDNS
|
#ifdef CONFIG_ENABLE_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) {
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
//#define CONFIG_ENABLE_POWER_SAVE
|
//#define CONFIG_ENABLE_POWER_SAVE
|
||||||
|
|
||||||
// Disable mDNS can also save power
|
// Disable mDNS can also save power
|
||||||
//#define CONFIG_DISABLE_MDNS
|
#define CONFIG_ENABLE_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