Integrate RPC with RMT

This commit is contained in:
2025-07-12 22:45:57 -04:00
parent aaf82d37d2
commit 0df0101265
22 changed files with 444 additions and 70 deletions

View File

@@ -11,7 +11,7 @@
#include "esp_log.h"
[[noreturn]] void LoopManager::control_loop() {
const auto messaging_interface = std::make_unique<MessagingInterface>();
const auto messaging_interface = std::make_unique<MessagingInterface>(std::make_unique<WifiManager>());
char buffer[512];
while (true) {
@@ -20,7 +20,7 @@
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);
messaging_interface->send(s, 21, 5, 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));