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

rin67630
Posts: 141
Joined: Sun Mar 11, 2018 5:13 pm

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

Postby rin67630 » Sat Apr 10, 2021 8:51 pm

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.

Who is online

Users browsing this forum: No registered users and 57 guests