[SYS] Fix for build error with MDNS_SD (#2239)
* Fix for build error with MDNS_SD * Update environments.ini
This commit is contained in:
1 parent
226297ba5b
commit
382fa5e9f2
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -936,7 +936,7 @@ std::pair<String, uint16_t> discoverMQTTbroker() {
|
||||
}
|
||||
if (n == 1) {
|
||||
THEENGS_LOG_TRACE(F("One MQTT server found setting parameters" CR));
|
||||
return {MDNS.IP(0).toString(), uint16_t(MDNS.port(0))};
|
||||
return {MDNS.hostname(0).c_str(), uint16_t(MDNS.port(0))};
|
||||
} else {
|
||||
THEENGS_LOG_WARNING(F("Several MQTT servers found, please deactivate mDNS and set your default server" CR));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user