Board to PC

This commit is contained in:
2025-07-12 14:13:11 -04:00
parent bf1c72215f
commit 6d2d646a0f
9 changed files with 139 additions and 686 deletions

View File

@@ -28,6 +28,8 @@ public:
[[noreturn]] static void router_thread(void *args);
int send_msg(char* buffer, size_t length) const;
// todo: does this really need to be here (so i can access from thread)?
QueueHandle_t m_tcp_rx_queue;
std::function<void(char*, int)> m_rx_callback;

View File

@@ -16,6 +16,7 @@ class TCPServer : IRPCServer {
public:
TCPServer(int port, QueueHandle_t rx_queue);
~TCPServer();
int send_msg(char* buffer, size_t length) const;
private:
bool authenticate_client(int client_sock);
@@ -29,7 +30,6 @@ private:
TaskHandle_t m_task;
TaskHandle_t m_rx_task;
TaskHandle_t m_tx_task;
QueueHandle_t m_rx_queue;