esp-tls: mark esp_tls_conn_delete API as deprecated

It is recommended to use `esp_tls_conn_destroy` API instead
This commit is contained in:
Mahavir Jain
2022-01-04 15:40:07 +05:30
parent b947373da2
commit c26500cd5a
7 changed files with 15 additions and 31 deletions

View File

@@ -159,7 +159,7 @@ static void https_get_request(esp_tls_cfg_t cfg, const char *WEB_SERVER_URL, con
} while (1);
exit:
esp_tls_conn_delete(tls);
esp_tls_conn_destroy(tls);
for (int countdown = 10; countdown >= 0; countdown--) {
ESP_LOGI(TAG, "%d...", countdown);
vTaskDelay(1000 / portTICK_PERIOD_MS);