Page 1 of 1

ESP32 C3 Error esp-tls: create_ssl_handle failed

Posted: Fri Mar 07, 2025 3:44 pm
by redo33
Hi,

I have WeAct ESP32 C3 and C6. The C6 worked fine but the C3 had the following error:

Code: Select all

[ 69137][I][RMaker.cpp:19] event_handler(): RainMaker Claim Started.
E (69532) esp-tls-mbedtls: mbedtls_ssl_setup returned -0x7F00
E (69532) esp-tls: create_ssl_handle failed
E (69533) esp-tls: Failed to open new connection
E (69535) transport_base: Failed to open a new connection
E (69541) HTTP_CLIENT: Connection failed, sock < 0
E (69545) esp_claim: Failed to open connection to https://esp-claiming.rainmaker.espressif.com/claim/initiate
E (69554) esp_claim: Claim Init Request Failed.
E (69558) esp_claim: Claim Init Sequence Failed.
[ 69213][I][RMaker.cpp:21] event_handler(): RainMaker Claim Failed.
It seems the C3 can create the TLS credential ? I wonder how to solve this.

Thank you.

Re: ESP32 C3 Error esp-tls: create_ssl_handle failed

Posted: Sat Mar 08, 2025 5:53 pm
by ahsrabrifat
Try to increase the available heap by disabling unnecessary features in sdkconfig:

Disable unnecessary logs (CONFIG_LOG_DEFAULT_LEVEL=1).
Reduce the Wi-Fi TX power:

Code: Select all

esp_wifi_set_max_tx_power(50); // Reduce power to save memory

Re: ESP32 C3 Error esp-tls: create_ssl_handle failed

Posted: Sat Mar 08, 2025 9:31 pm
by redo33
Thank you very much.

Luckily, I found a solution. Changing ESP32 Core to 2.0.17 and choose the ESP32 C3 Dev Module. Everything works.

People have encountered problems due to the Core mismatch.