Refactor: net_mdns in separate component ausgelagert

This commit is contained in:
2025-12-11 01:36:01 +01:00
parent 5f60ea3841
commit ca8ec3c993
5 changed files with 13 additions and 3 deletions
@@ -0,0 +1,12 @@
idf_component_register(
SRCS
"src/net_mdns.c"
INCLUDE_DIRS
"include"
REQUIRES
mdns
esp_netif
esp_wifi
storage
)
@@ -3,7 +3,7 @@
#include "esp_log.h" #include "esp_log.h"
#include "esp_event.h" #include "esp_event.h"
#include "esp_netif.h" #include "esp_netif.h"
#include "esp_wifi.h" // <— wichtig für WIFI_EVENT #include "esp_wifi.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/task.h" #include "freertos/task.h"
#include "mdns.h" #include "mdns.h"
-1
View File
@@ -2,7 +2,6 @@ set(app_sources
"main.c" "main.c"
"lv_fs_port.c" "lv_fs_port.c"
"net_influx.c" "net_influx.c"
"net_mdns.c"
"sen5x_app.c" "sen5x_app.c"
"wifi_mgr.c" "wifi_mgr.c"
) )
-1
View File
@@ -17,7 +17,6 @@
#include "lwip/netdb.h" #include "lwip/netdb.h"
#include "http_portal.h"
#include "wifi_mgr.h" #include "wifi_mgr.h"
#include "storage.h" #include "storage.h"
#include "net_mdns.h" #include "net_mdns.h"