adding mdns so we dont rely on ip to connect

This commit is contained in:
2026-03-08 18:16:50 -04:00
parent c034999d20
commit 38201280ea
6 changed files with 61 additions and 4 deletions

View File

@@ -14,7 +14,6 @@
#include "sdkconfig.h"
#include "soc/gpio_num.h"
// Project headers
#include "appstate.hpp"
#include "types.hpp"
@@ -24,6 +23,7 @@
#include "led_status.cpp"
#include "connect.cpp"
#include "http_server.cpp"
#include "mdns_service.cpp"
// clang-format on
// Global Application State Definitions
@@ -248,11 +248,14 @@ extern "C" void app_main()
printf("Will use Ethernet!\n");
}
printf("Connected!\n");
printf("Connected! IP acquired.\n");
// Start the webserver
web_server = start_webserver();
// Start mDNS
start_mdns();
// Mark the current app as valid to cancel rollback, only if it's an OTA app
{
const esp_partition_t *running = esp_ota_get_running_partition();