mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 09:05:59 +08:00
Merge branch 'bugfix/fix_example_https_request_ssl' into 'master'
fix(example): fix HTTPS request SSL macro error See merge request sdk/ESP8266_RTOS_SDK!1297
This commit is contained in:
@ -178,12 +178,7 @@ static void https_get_task(void *pvParameters)
|
||||
bzero(buf, sizeof(buf));
|
||||
ret = esp_tls_conn_read(tls, (char *)buf, len);
|
||||
|
||||
if
|
||||
#if CONFIG_SSL_USING_MBEDTLS
|
||||
(ret == MBEDTLS_ERR_SSL_WANT_WRITE || ret == MBEDTLS_ERR_SSL_WANT_READ)
|
||||
#else
|
||||
(ret == WOLFSSL_ERROR_WANT_READ && ret == WOLFSSL_ERROR_WANT_WRITE)
|
||||
#endif
|
||||
if (ret == ESP_TLS_ERR_SSL_WANT_READ || ret == ESP_TLS_ERR_SSL_WANT_WRITE)
|
||||
continue;
|
||||
|
||||
if(ret < 0)
|
||||
|
Reference in New Issue
Block a user