From 87de2641464a050ddd562405460c9d1730819fcd Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 23 Nov 2022 21:41:35 +0100 Subject: [PATCH 1/2] Improve mdns logging --- tasmota/my_user_config.h | 2 +- tasmota/tasmota_support/support_network.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index ee67d9bd4..5d31cb106 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -1193,7 +1193,7 @@ * Mutual exclude options \*********************************************************************************************/ -#if defined(USE_DISCOVERY) && (defined(USE_MQTT_AWS_IOT) || defined(USE_MQTT_AWS_IOT_LIGHT)) +#if defined(ESP8266) && defined(USE_DISCOVERY) && (defined(USE_MQTT_AWS_IOT) || defined(USE_MQTT_AWS_IOT_LIGHT)) #error "Select either USE_DISCOVERY or USE_MQTT_AWS_IOT, mDNS takes too much code space and is not needed for AWS IoT" #endif diff --git a/tasmota/tasmota_support/support_network.ino b/tasmota/tasmota_support/support_network.ino index f03edbd75..5dd32cfc1 100644 --- a/tasmota/tasmota_support/support_network.ino +++ b/tasmota/tasmota_support/support_network.ino @@ -31,7 +31,7 @@ void StartMdns(void) { if (!Mdns.begun) { MDNS.end(); // close existing or MDNS.begin will fail Mdns.begun = (uint8_t)MDNS.begin(TasmotaGlobal.hostname); - AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_MDNS "%s"), (Mdns.begun) ? PSTR(D_INITIALIZED) : PSTR(D_FAILED)); + AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_MDNS "%s '%s.local'"), (Mdns.begun) ? PSTR(D_INITIALIZED) : PSTR(D_FAILED), TasmotaGlobal.hostname); } } } From 5c3df72675d015448fe61d31739d830868afa4ac Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 23 Nov 2022 21:57:40 +0100 Subject: [PATCH 2/2] Disable MQTT_HOST_DISCOVERY by default --- tasmota/my_user_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 5d31cb106..3cd730dd6 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -488,7 +488,7 @@ // -- mDNS ---------------------------------------- //#define USE_DISCOVERY // Enable mDNS for the following services (+8k code or +23.5k code with core 2_5_x, +0.3k mem) #define WEBSERVER_ADVERTISE // Provide access to webserver by name .local/ - #define MQTT_HOST_DISCOVERY // Find MQTT host server (overrides MQTT_HOST if found) + // #define MQTT_HOST_DISCOVERY // Find MQTT host server (overrides MQTT_HOST if found) - disabled by default because it causes blocked repeated 3000ms pauses // -- Time ---------------------------------------- #define USE_TIMERS // Add support for up to 16 timers (+2k2 code)