OTA + remote logging + profiling

This commit is contained in:
2026-02-18 11:12:38 -05:00
parent 63a18677cb
commit 107f185527
16 changed files with 524 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
#include "RemoteDebugging.h"
#include "RemoteManagement.h"
#if !defined(RMT_TEST) || (defined(RMT_TEST) && RMT_TEST == 0)
// #include <cstdio>
// #include <memory>
@@ -15,11 +17,14 @@ extern "C" [[noreturn]] void app_main(void) {
auto& config_manager = ConfigManager::get_instance(); // NOLINT - here for easily adding temporary config
esp_log_set_vprintf(RemoteDebugging::custom_log_write);
const auto loop_manager = std::make_unique<LoopManager>();
xTaskCreate(reinterpret_cast<TaskFunction_t>(LoopManager::metadata_tx_loop),
"metadata_tx", 3096, loop_manager.get(), 3, nullptr);
xTaskCreate(reinterpret_cast<TaskFunction_t>(LoopManager::sensor_loop),
"sensor_tx", 3096, loop_manager.get(), 3, nullptr);
RemoteDebugging::register_calls(loop_manager->get_messaging_interface());
RemoteManagement::register_calls(loop_manager->get_messaging_interface());
RemoteManagement::mark_ota_success();
loop_manager->control_loop();
}
#endif