network changes

This commit is contained in:
2026-03-28 12:48:41 -04:00
parent dc935dd72d
commit 7d3d1de277
5 changed files with 74 additions and 65 deletions
+3
View File
@@ -5,6 +5,9 @@
},
{
"path": "../components"
},
{
"path": "../Client"
}
],
"settings": {
+9 -5
View File
@@ -16,9 +16,9 @@
#include "soc/gpio_num.h"
// Project headers
#include "types.hpp"
#include "network.hpp"
#include "led.hpp"
#include "network.hpp"
#include "types.hpp"
// Project cpp (Unity Build entry)
// clang-format off
@@ -186,6 +186,8 @@ extern "C" void app_main()
setup_led();
initialize_network();
set_led_status(led_status::ConnectingEthernet);
g_Ethernet_Initialized = true;
esp_err_t result = connect_ethernet(kBlockUntilEthernetEstablished);
@@ -346,9 +348,10 @@ extern "C" void app_main()
{
char *saveptr;
char *line = strtok_r(ptr, "\n", &saveptr);
while (line != nullptr) {
ESP_LOGI(kTagMain, "%s", line);
line = strtok_r(nullptr, "\n", &saveptr);
while (line != nullptr)
{
ESP_LOGI(kTagMain, "%s", line);
line = strtok_r(nullptr, "\n", &saveptr);
}
free(ptr);
}
@@ -382,4 +385,5 @@ shutdown:
ESP_ERROR_CHECK(esp_event_loop_delete_default());
ESP_ERROR_CHECK(nvs_flash_deinit());
shutdown_network();
}