Rebuild the platform espressif32 with DTLS for Arduino framework

Ok what exactly did you execute to rebuild it “using ESP-IDF tools”?

This is -0x7100 and indicates bad input data.

What is exactly the test firmware and against which server are you talking about? Note that the CONFIG_MBEDTLS_SSL_PROTO_DTLS will generate a ClientHello which wants a HelloVerifyRequest. If your server sends something else you get that error.

If you do not want that then you musn’t use the CONFIG_ macro but instead the direct collection of mbedtls macros, e.g.

build_flags = -D MBEDTLS_SSL_PROTO_DTLS -D MBEDTLS_SSL_DTLS_ANTI_REPLAY -D MBEDTLS_SSL_DTLS_CLIENT_PORT_REUSE -D MBEDTLS_SSL_DTLS_BADMAC_LIMIT

(no MBEDTLS_SSL_DTLS_HELLO_VERIFY included)

1 Like