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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user