13 static const char *
const TAG =
"ota.arduino_libretiny";
15 std::unique_ptr<ota::OTABackend>
make_ota_backend() {
return make_unique<ota::ArduinoLibreTinyOTABackend>(); }
18 bool ret = Update.begin(image_size, U_FLASH);
23 uint8_t error = Update.getError();
24 if (error == UPDATE_ERROR_SIZE)
27 ESP_LOGE(TAG,
"Begin error: %d", error);
35 size_t written = Update.write(data, len);
40 uint8_t error = Update.getError();
41 ESP_LOGE(TAG,
"Write error: %d", error);
51 uint8_t error = Update.getError();
52 ESP_LOGE(TAG,
"End error: %d", error);
62 #endif // USE_LIBRETINY
void set_update_md5(const char *md5) override
OTAResponseTypes begin(size_t image_size) override
std::unique_ptr< ota::OTABackend > make_ota_backend()
Implementation of SPI Controller mode.
OTAResponseTypes write(uint8_t *data, size_t len) override
OTAResponseTypes end() override