ESP32 C3 Error esp-tls: create_ssl_handle failed

redo33
Posts: 5
Joined: Fri Mar 07, 2025 3:37 pm

ESP32 C3 Error esp-tls: create_ssl_handle failed

Postby redo33 » Fri Mar 07, 2025 3:44 pm

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.

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

Re: ESP32 C3 Error esp-tls: create_ssl_handle failed

Postby ahsrabrifat » Sat Mar 08, 2025 5:53 pm

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

redo33
Posts: 5
Joined: Fri Mar 07, 2025 3:37 pm

Re: ESP32 C3 Error esp-tls: create_ssl_handle failed

Postby redo33 » Sat Mar 08, 2025 9:31 pm

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.

Who is online

Users browsing this forum: No registered users and 1 guest