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:
26
main/include/RemoteDebugging.h
Normal file
26
main/include/RemoteDebugging.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef REMOTEDEBUGGING_H
|
||||
#define REMOTEDEBUGGING_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "MessagingInterface.h"
|
||||
#include "control/ActuatorFactory.h"
|
||||
#include "control/IActuator.h"
|
||||
#include "util/ring_buffer.h"
|
||||
|
||||
#define LOG_BUFFER_SIZE 50
|
||||
|
||||
static auto log_buffer = std::make_unique<RingBuffer<std::string>>(LOG_BUFFER_SIZE);
|
||||
|
||||
|
||||
class RemoteDebugging {
|
||||
public:
|
||||
static std::string get_task_manager();
|
||||
static std::string get_logs();
|
||||
static int custom_log_write(const char *data, va_list args);
|
||||
static void register_calls(MessagingInterface &messaging_interface);
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif // REMOTEDEBUGGING_H
|
||||
Reference in New Issue
Block a user