Page 1 of 1

MBEDTLS with TCP socket example

Posted: Wed Mar 13, 2024 4:05 pm
by dmrsim
Hello,

I'm using esp-idf 4.4.2 and I have to use MBEDTLS using TCP socket in order to send data to a server.
Please, could you give me how to do it, or give me a small example?

Thanks!

Re: MBEDTLS with TCP socket example

Posted: Wed Mar 13, 2024 11:39 pm
by MicroController
Example, yes.
Small... no ;-)
https://github.com/espressif/esp-idf/tr ... ps_mbedtls

The ESP-TLS API is a bit more simple to use:
https://github.com/espressif/esp-idf/tr ... ps_request

Re: MBEDTLS with TCP socket example

Posted: Fri Mar 15, 2024 7:19 am
by dmrsim
Hello, thanks a lot, there is a way to use MBEDTLS and POSIX TCP socket?

Re: MBEDTLS with TCP socket example

Posted: Fri Mar 15, 2024 7:20 am
by daniweb