Initial TCP server

This commit is contained in:
2025-06-05 01:44:58 -04:00
parent 6abf6be32d
commit e87abf9eef
18 changed files with 373 additions and 90 deletions

View File

@@ -4,19 +4,22 @@
#include "sdkconfig.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_flash.h"
#include "nvs_flash.h"
#include "WifiManager.h"
#include "mDNSDiscoveryService.h"
#include "TCPServer.h"
#include "ConfigManager.h"
#include "constants/tcp.h"
extern "C" [[noreturn]] void app_main(void) {
nvs_flash_init();
ConfigManager::init_config();
const auto manager = std::make_unique<WifiManager>();
manager->connect();
const auto discovery = std::make_unique<mDNSDiscoveryService>();
mDNSDiscoveryService::setup();
const auto tcp_server = std::make_unique<TCPServer>(TCP_PORT);
printf("Hello world!\n");