16 lines
231 B
C++
16 lines
231 B
C++
#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;
|
|
};
|