🚨 Fixes build error for esp-idf

This commit is contained in:
Rune Harlyk
2025-09-11 21:59:25 +02:00
committed by Rune Harlyk
parent 3f4d956903
commit 9c74c8e87b
13 changed files with 28 additions and 64 deletions
+2 -3
View File
@@ -2,7 +2,6 @@
#include <ArduinoJson.h>
#include <utils/json_utils.h>
#include <utils/string_utils.h>
#include <template/state_result.h>
#include <filesystem.h>
@@ -111,10 +110,10 @@ class MDNSSettings {
}
if (settings.services.empty()) {
mdns_service_t httpService = {.service = "http", .protocol = "tcp", .port = 80};
mdns_service_t httpService = {.service = "http", .protocol = "tcp", .port = 80, .txtRecords = {}};
settings.services.push_back(httpService);
mdns_service_t wsService = {.service = "ws", .protocol = "tcp", .port = 80};
mdns_service_t wsService = {.service = "ws", .protocol = "tcp", .port = 80, .txtRecords = {}};
settings.services.push_back(wsService);
}