Page 1 of 1

Warning: new version 1.0.6 of ESP 32 compiler takes TLS by default!

Posted: Sat Apr 10, 2021 8:51 pm
by rin67630
The new version 1.0.16 of ESP 32 compiler takes TLS by default!

This may break e.g. communication with MQTT brokers that do not handle TLS.

If you enable full debugging messages you get

[V][ssl_client.cpp:265] stop_ssl_socket(): Cleaning SSL connection.
[V][ssl_client.cpp:59] start_ssl_client(): Free internal heap before TLS 262800
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[V][ssl_client.cpp:265] stop_ssl_socket(): Cleaning SSL connection.
[V][ssl_client.cpp:265] stop_ssl_socket(): Cleaning SSL connection.
[V][ssl_client.cpp:59] start_ssl_client(): Free internal heap before TLS 262800
[E][WiFiClientSecure.cpp:127] connect(): start_ssl_client: -1
[V][ssl_client.cpp:265] stop_ssl_socket(): Cleaning SSL connection.

looping continuously!

You have 2 methods to avoid that problem

1) enter #define _DISABLE_TLS_ before calling any library in your sketch.
or
2) in the board manager, revert to version 1.0.4.