From 69441badd042f3b119df63a6939049c8ac139ded Mon Sep 17 00:00:00 2001 From: Ubi de Feo Date: Thu, 6 May 2021 19:03:52 +0200 Subject: [PATCH] enabled `setInsecure()` for ESP32 Previously a call to this method had to be omitted, it was only required for ESP8266. Out of a debugging session ended up with the broker refusing connections so I enabled `insecure` mode and it now works --- src/ArduinoIoTCloudTCP.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ArduinoIoTCloudTCP.cpp b/src/ArduinoIoTCloudTCP.cpp index 55ad692ae..ae9a28caa 100644 --- a/src/ArduinoIoTCloudTCP.cpp +++ b/src/ArduinoIoTCloudTCP.cpp @@ -207,10 +207,8 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress, _sslClient.setClient(_connection->getClient()); _sslClient.setEccSlot(static_cast(ECCX08Slot::Key), _eccx08_cert.bytes(), _eccx08_cert.length()); #elif defined(BOARD_ESP) - #ifndef ESP32 _sslClient.setInsecure(); #endif - #endif _mqttClient.setClient(_sslClient); #ifdef BOARD_ESP