mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Initial TCP server
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user