Skip to content

Commit 8697692

Browse files
authored
enabled setInsecure() for ESP32 (#251)
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
1 parent ae54b94 commit 8697692

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/ArduinoIoTCloudTCP.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,8 @@ int ArduinoIoTCloudTCP::begin(bool const enable_watchdog, String brokerAddress,
207207
_sslClient.setClient(_connection->getClient());
208208
_sslClient.setEccSlot(static_cast<int>(ECCX08Slot::Key), _eccx08_cert.bytes(), _eccx08_cert.length());
209209
#elif defined(BOARD_ESP)
210-
#ifndef ESP32
211210
_sslClient.setInsecure();
212211
#endif
213-
#endif
214212

215213
_mqttClient.setClient(_sslClient);
216214
#ifdef BOARD_ESP

0 commit comments

Comments
 (0)