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

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

This may break e.g. communication with MQTT brokers that do not handle TLS.
I was not aware of that and lost a week searching MY bug...

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 (should work for most good communication libraries)
    or
  2. in the board manager, revert to version 1.0.4 (Always works, bt new boards my miss)

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.