Referring to example code advanced_https_ota we are facing to maintain version no. of our image file.
Below part of code is throwing file version error Current running version is the same as a new. We will not continue the update.
Code: Select all
esp_app_desc_t app_desc;
err = esp_https_ota_get_img_desc(https_ota_handle, &app_desc);
if (err != ESP_OK) {
ESP_LOGE(TAG, "esp_https_ota_read_img_desc failed");
goto ota_end;
}
err = validate_image_header(&app_desc);
if (err != ESP_OK) {
ESP_LOGE(TAG, "image header verification failed");
goto ota_end;
}
Regards,
Akshaay