Board to PC

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

View File

@@ -10,7 +10,7 @@
#include "esp_log.h"
void LoopManager::control_loop() {
[[noreturn]] void LoopManager::control_loop() {
const auto messaging_interface = std::make_unique<MessagingInterface>();
char buffer[512];
@@ -18,9 +18,12 @@ void LoopManager::control_loop() {
messaging_interface->recv(buffer, 512, 0, 1);
std::cout << buffer << std::endl;
char s[21] = {'H', 'e', 'l', 'l', 'o', ' ', 'f', 'r', 'o', 'm', ' ', 't', 'h', 'e', ' ', 'B', 'O', 'A', 'R', 'D', '!' };
messaging_interface->send(s, 21, 1, 2, true);
ESP_LOGI("MEM", "Free internal RAM: %d", heap_caps_get_free_size(MALLOC_CAP_8BIT));
ESP_LOGI("MEM", "Free PSRAM: %d", heap_caps_get_free_size(MALLOC_CAP_SPIRAM));
}
}