Closed MaxiLargo closed 3 months ago
You have to use setSessionTimeout
in case the TCP session was kept alive while server terminates the connection.
https://github.com/mobizt/ESP_SSLClient?tab=readme-ov-file#set-the-tcp-session-timeout-in-seconds
You have to try some timeout e.g. 60 to 180 seconds depends on its server policy. e.g.
ssl_client.setSessionTimeout(150); // 150 sec or 2.5 min timeout
Hi it's me again. Finally i can connect me to the broker mqtt successfully, but in another proyect https://github.com/mobizt/ESP_SSLClient/issues/9#issue-2388394631 .
In my main proyect, i try to use the same but i had some problems:
and the log was:
Pd: In the main proyect i use 2 task, 1 for mqtt and another for an oled screen