mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Merge pull request #17171 from s-hadinger/mdns_log
Improve mdns logging
This commit is contained in:
commit
0e7e950c4f
@ -488,7 +488,7 @@
|
|||||||
// -- mDNS ----------------------------------------
|
// -- 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 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 <Hostname>.local/
|
#define WEBSERVER_ADVERTISE // Provide access to webserver by name <Hostname>.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 ----------------------------------------
|
// -- Time ----------------------------------------
|
||||||
#define USE_TIMERS // Add support for up to 16 timers (+2k2 code)
|
#define USE_TIMERS // Add support for up to 16 timers (+2k2 code)
|
||||||
@ -1193,7 +1193,7 @@
|
|||||||
* Mutual exclude options
|
* 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"
|
#error "Select either USE_DISCOVERY or USE_MQTT_AWS_IOT, mDNS takes too much code space and is not needed for AWS IoT"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ void StartMdns(void) {
|
|||||||
if (!Mdns.begun) {
|
if (!Mdns.begun) {
|
||||||
MDNS.end(); // close existing or MDNS.begin will fail
|
MDNS.end(); // close existing or MDNS.begin will fail
|
||||||
Mdns.begun = (uint8_t)MDNS.begin(TasmotaGlobal.hostname);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user