Refactor: dns_captive als eigenständige ESP-IDF-Komponente ausgelagert

- dns_captive.c/.h nach components/dns_captive verschoben
- Neues CMakeLists.txt für Komponente ergänzt
- src/CMakeLists.txt angepasst (komponentenbasiert, REQUIRES dns_captive)
- Projektstruktur bereinigt und klar modularisiert
This commit is contained in:
2025-12-11 00:42:59 +01:00
parent b7f6325dea
commit 707df025b8
5 changed files with 26 additions and 20 deletions
@@ -0,0 +1,9 @@
idf_component_register(
SRCS
"src/dns_captive.c"
INCLUDE_DIRS
"include"
REQUIRES
lwip
esp_netif
)
+12 -14
View File
@@ -1,19 +1,17 @@
idf_component_register(
SRCS
set(app_sources
"main.c"
"lv_fs_port.c"
"wifi_mgr.c"
"http_portal.c"
"storage.c"
"dns_captive.c"
"net_mdns.c"
"lv_fs_port.c"
"net_influx.c"
"sys_status.c"
"net_mdns.c"
"sen5x_app.c"
INCLUDE_DIRS
"."
REQUIRES
driver
freertos
log
"storage.c"
"sys_status.c"
"wifi_mgr.c"
)
idf_component_register(
SRCS ${app_sources}
INCLUDE_DIRS "."
REQUIRES dns_captive
)
+1 -2
View File
@@ -19,10 +19,9 @@
#include "http_portal.h"
#include "wifi_mgr.h"
#include "storage.h" // NVS-Zugriffe
#include "storage.h"
#include "net_mdns.h"
#include "sys_status.h"
#include "dns_captive.h"
// ---------- Konfig ----------