This commit is contained in:
2025-07-07 22:44:57 -04:00
parent e16f332476
commit 9987a63af5
54 changed files with 13224 additions and 105 deletions

View File

@@ -0,0 +1,19 @@
#include "CommunicationRouter.h"
#include <iostream>
CommunicationRouter::~CommunicationRouter() {
vQueueDelete(m_tcp_rx_queue);
}
[[noreturn]] void CommunicationRouter::router_thread(void *args) {
const auto that = static_cast<CommunicationRouter *>(args);
// todo: change to queue set
char buffer[512];
while (true) {
xQueueReceive(that->m_tcp_rx_queue, buffer, portMAX_DELAY);
that->m_rx_callback(buffer, 512);
std::cout << "callback" << std::endl;
}
}