1 #ifdef USE_ESP32_FRAMEWORK_ARDUINO 13 static const char *
const TAG =
"ota.arduino_esp32";
15 std::unique_ptr<ota::OTABackend>
make_ota_backend() {
return make_unique<ota::ArduinoESP32OTABackend>(); }
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_ESP32_FRAMEWORK_ARDUINO
OTAResponseTypes begin(size_t image_size) override
void set_update_md5(const char *md5) override
OTAResponseTypes write(uint8_t *data, size_t len) override
OTAResponseTypes end() override
std::unique_ptr< ota::OTABackend > make_ota_backend()
Implementation of SPI Controller mode.