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:
@@ -0,0 +1,9 @@
|
||||
idf_component_register(
|
||||
SRCS
|
||||
"src/dns_captive.c"
|
||||
INCLUDE_DIRS
|
||||
"include"
|
||||
REQUIRES
|
||||
lwip
|
||||
esp_netif
|
||||
)
|
||||
+16
-18
@@ -1,19 +1,17 @@
|
||||
set(app_sources
|
||||
"main.c"
|
||||
"http_portal.c"
|
||||
"lv_fs_port.c"
|
||||
"net_influx.c"
|
||||
"net_mdns.c"
|
||||
"sen5x_app.c"
|
||||
"storage.c"
|
||||
"sys_status.c"
|
||||
"wifi_mgr.c"
|
||||
)
|
||||
|
||||
idf_component_register(
|
||||
SRCS
|
||||
"main.c"
|
||||
"lv_fs_port.c"
|
||||
"wifi_mgr.c"
|
||||
"http_portal.c"
|
||||
"storage.c"
|
||||
"dns_captive.c"
|
||||
"net_mdns.c"
|
||||
"net_influx.c"
|
||||
"sys_status.c"
|
||||
"sen5x_app.c"
|
||||
INCLUDE_DIRS
|
||||
"."
|
||||
REQUIRES
|
||||
driver
|
||||
freertos
|
||||
log
|
||||
)
|
||||
SRCS ${app_sources}
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES dns_captive
|
||||
)
|
||||
|
||||
@@ -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 ----------
|
||||
|
||||
Reference in New Issue
Block a user