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

@@ -0,0 +1,26 @@
#ifndef REMOTEMANAGEMENT_H
#define REMOTEMANAGEMENT_H
#include <memory>
#include "esp_ota_ops.h"
#include "MessagingInterface.h"
static esp_ota_handle_t ota_handle;
static const esp_partition_t* update_partition = esp_ota_get_next_update_partition(NULL);
static uint16_t packet_number = 0; // represents last written packet
class RemoteManagement {
public:
static void mark_ota_success();
static bool start_ota();
static bool write_ota(const uint8_t* ota_data, size_t size);
static bool ota_end();
static void restart();
static void register_calls(MessagingInterface &messaging_interface);
private:
};
#endif // REMOTEMANAGEMENT_H