From 6083f08a345fabca51ab845d55964975b814ea41 Mon Sep 17 00:00:00 2001 From: "hrushikesh.bhosale" Date: Fri, 8 Aug 2025 16:01:22 +0530 Subject: [PATCH] feat(esp_http_client): Make https_async request under CERT BUNDLE config Make https_async rqeuest under MBEDTLS_CERTIFICATE_BUNDLE config --- .../protocols/esp_http_client/main/esp_http_client_example.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/protocols/esp_http_client/main/esp_http_client_example.c b/examples/protocols/esp_http_client/main/esp_http_client_example.c index e6c007253f..9073423282 100644 --- a/examples/protocols/esp_http_client/main/esp_http_client_example.c +++ b/examples/protocols/esp_http_client/main/esp_http_client_example.c @@ -590,6 +590,7 @@ static void http_perform_as_stream_reader(void) free(buffer); } +#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE static void https_async(void) { esp_http_client_config_t config = { @@ -647,6 +648,7 @@ static void https_async(void) } esp_http_client_cleanup(client); } +#endif static void https_with_invalid_url(void) { @@ -805,7 +807,9 @@ static void http_test_task(void *pvParameters) http_redirect_to_https(); http_download_chunk(); http_perform_as_stream_reader(); +#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE https_async(); +#endif https_with_invalid_url(); http_native_request(); #if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE