Reapply "Zmiana hostnamu mDNS na numer seryjny z restUser"

This reverts commit ec823c7a06.
This commit is contained in:
Victus
2026-05-11 01:21:25 +02:00
parent ec823c7a06
commit 7699c48fcb

View File

@@ -219,10 +219,10 @@ int8_t WiFiManager::getRSSI() {
void WiFiManager::setupMDNS() {
ESP_LOGI(WIFI, "mDNS start");
if (!MDNS.begin(config.hostname)) {
if (!MDNS.begin(config.restUser)) {
ESP_LOGE(WIFI, "mDNS error");
} else {
String mdnsstr = "MDNS: http://" + String(config.hostname) + ".local";
String mdnsstr = "MDNS: http://" + String(config.restUser) + ".local";
ESP_LOGI(WIFI, "%s", mdnsstr.c_str());
}
}