OPEnSLab-OSU / SSLClient

🔒Add SSL/TLS functionality to any Arduino library
https://openslab-osu.github.io/SSLClient/index.html
GNU General Public License v3.0
153 stars 46 forks source link

Error writing to m_client on ESP32 #44

Closed bkaraceylan closed 3 years ago

bkaraceylan commented 3 years ago

Describe the bug ESP32dev board with ec28j60 ethernet module. Using UIPEthernet library. EthernetHTTPS example works fine however my program returns this error. Free heap memory before connection request is 226416.

To Reproduce Send a request to an SSL endpoint using the hardware setup mentioned above.

Expected behavior Return html content.

Screenshots/Serial Output (SSLClient)(SSL_ERROR)(m_update_engine): Error writing to m_client (SSLClient)(SSL_ERROR)(m_update_engine): 0 (SSLClient)(SSL_ERROR)(connected): Not connected because write error is set (SSLClient)(SSL_ERROR)(m_print_ssl_error): SSL_CLIENT_WRITE_FAIL (SSLClient)(SSL_WARN)(m_run_until): Terminating with write error: (SSLClient)(SSL_WARN)(m_run_until): 4 (SSLClient)(SSL_ERROR)(m_start_ssl): Failed to initlalize the SSL layer (SSLClient)(SSL_ERROR)(m_print_br_error): Unknown error code: 0

Context (please complete the following information): platform = espressif32 board = esp32dev framework = arduino uipethernet/UIPEthernet@^2.0.9 openslab-osu/SSLClient@^1.6.11 build_flags = -D BEARSSL_SSL_BASIC

bkaraceylan commented 3 years ago

UIPEthernet seems to be the underlying cause. Closing this.

woodlist commented 3 years ago

This exact case happens with my connections very frequently too on GSM modem, having used the TinyGSM library.

rohitsam commented 2 years ago

Happens for me on esp32 wifi, any fix to this?

faizurrehman commented 2 years ago

Is it fixed? I am facing similar issue with esp32

nada0302 commented 1 year ago

I have an same issue with esp32 using example AWSIoT...

MeY0u commented 8 months ago

still no fix?