feature/esp_https_ota: Changes to make esp_https_ota compatible with ESP8266.

Changes:
Changed component.mk to enable only mbedtls based compilation.
Removed esp_err_to_name occurence. Updated README.md.
Shifted OTA examples to examples/system/ota.
Changed the sdkconfig.defaults for the example compilation.
This commit is contained in:
Supreet Deshpande
2019-02-14 18:09:14 +05:30
parent 6a6e9cd54b
commit 43d230a0f1
22 changed files with 145 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ esp_err_t esp_https_ota(const esp_http_client_config_t *config)
esp_err_t err = esp_http_client_open(client, 0);
if (err != ESP_OK) {
esp_http_client_cleanup(client);
ESP_LOGE(TAG, "Failed to open HTTP connection: %s", esp_err_to_name(err));
ESP_LOGE(TAG, "Failed to open HTTP connection: %d", err);
return err;
}
esp_http_client_fetch_headers(client);