Initial TCP server

This commit is contained in:
2025-06-05 01:44:58 -04:00
parent 7a4b899eaa
commit 66445a9698
8 changed files with 230 additions and 49 deletions

View File

@@ -9,6 +9,7 @@
#include "WifiManager.h"
#include "mDNSDiscoveryService.h"
#include "TCPServer.h"
extern "C" [[noreturn]] void app_main(void) {
nvs_flash_init();
@@ -18,6 +19,10 @@ extern "C" [[noreturn]] void app_main(void) {
const auto discovery = std::make_unique<mDNSDiscoveryService>();
vTaskDelay(20000 / portTICK_PERIOD_MS);
const auto tcp_server = std::make_unique<TCPServer>(3001);
printf("Hello world!\n");
for (int i = 0; ; i++) {