adding mdns so we dont rely on ip to connect
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user