Merge branch 'bugfix/esp_https_ota_breaking_changes' into 'master'

esp_https_ota: Update esp_https_ota() to support OTA updates with encrypted images

See merge request espressif/esp-idf!17312
This commit is contained in:
Mahavir Jain
2022-03-14 18:15:52 +08:00
5 changed files with 42 additions and 16 deletions

View File

@@ -121,8 +121,11 @@ void simple_ota_example_task(void *pvParameter)
config.skip_cert_common_name_check = true;
#endif
esp_https_ota_config_t ota_config = {
.http_config = &config,
};
ESP_LOGI(TAG, "Attempting to download update from %s", config.url);
esp_err_t ret = esp_https_ota(&config);
esp_err_t ret = esp_https_ota(&ota_config);
if (ret == ESP_OK) {
esp_restart();
} else {