mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-15 14:56:30 +00:00
Matter and mDNS can be enabled at the same time (#23373)
This commit is contained in:
parent
d7073b3bdf
commit
9ed833ec5f
@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
|
||||
- Berry string literals containing NULL are truncated (#23312)
|
||||
- Berry `display.touch_update` wrongly applies resistive calibration (#23363)
|
||||
- NimBLE log_level definition conflict (#23366)
|
||||
- Matter and mDNS can be enabled at the same time
|
||||
|
||||
### Removed
|
||||
|
||||
|
@ -29,7 +29,9 @@ struct {
|
||||
void StartMdns(void) {
|
||||
if (Settings->flag3.mdns_enabled) { // SetOption55 - Control mDNS service
|
||||
if (!Mdns.begun) {
|
||||
#ifdef ESP8266 // the following will break Matter support, MDNS.end() does not seem necessary for ESP32, but I prefer to keep it on ESP8266 because I can't test it (#23371)
|
||||
MDNS.end(); // close existing or MDNS.begin will fail
|
||||
#endif // ESP8266
|
||||
Mdns.begun = (uint8_t)MDNS.begin(TasmotaGlobal.hostname);
|
||||
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