mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
OTA + remote logging + profiling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user