Page 1 of 1

[Resolved] How to set OTA Image Version Number

Posted: Mon Jan 10, 2022 1:49 pm
by akshaay24
Hello,

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;
    }
Any help will be appreciated.

Regards,
Akshaay

Re: How to set OTA Image Version Number

Posted: Tue Jan 11, 2022 1:28 am
by ESP_Sprite

Re: How to set OTA Image Version Number

Posted: Tue Jan 11, 2022 4:51 am
by akshaay24
Thank you, Issue Solved.

Re: [Resolved] How to set OTA Image Version Number

Posted: Tue Mar 05, 2024 1:29 pm
by dejanr
How did you solve this problem?

I need to check firmware version, but

'esp_app_desc_t app_desc;
esp_err_t err = esp_https_ota_get_img_desc...'

not recognize all version number. It read only the first character, example: for 1.0.5. --> read only 1