This commit is contained in:
technyon
2022-06-13 22:54:20 +02:00
parent 423cb4ad50
commit 9286c5f56e
6 changed files with 50 additions and 14 deletions

15
Ota.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include <stdint.h>
#include <cstddef>
#include "esp_ota_ops.h"
class Ota
{
public:
void updateFirmware(uint8_t buf, size_t size);
private:
bool _updateFlag = false;
esp_ota_handle_t otaHandler = 0;
};