Micromod ESP32 Arduino IOT Cloud Problem

Hi @all,

i’m relatively new to arduino and so on. I’m trying to build a weather station with the weather carrier board and an ESP32 micromod.

That works perfectly, connecting to wifi, send data to a raspy where the data is processed, combined with other (esp32, arduino) devices.

Right now i want to connect the ESP32 Micromod with the arduino IOT cloud. But i’m always getting following error when validating the code (Tried the example scripts, the script provided by arduino IOT online, always the same):

.../libraries/ArduinoIoTCloud/src/ArduinoIoTCloudTCP.cpp: In member function 'int ArduinoIoTCloudTCP::begin(bool, String, uint16_t)':
../libraries/ArduinoIoTCloud/src/ArduinoIoTCloudTCP.cpp:238:14: error: 'class WiFiClientSecure' has no member named 'setInsecure'
   _sslClient.setInsecure();

Installed Boards:

  • Espressif ESP32, V2.0.6

  • Sparkfun ESP32 Boards, V1.0.0

I’ve tried loads of solutions found on the net, but none was working. Has someone else experienced this issue and probably solved it?

Thx in advance!

Solved!

Somehow the solutions i found, always stated, that

client.setInsecure();

should be before

ArduinoCloud.begin(ArduinoIoTPreferredConnection);

But somehow, it works like a charm if i put the setInsecure after ArduinoCloud.begin

So the Board now serves data to the Arduino IOT Cloud and to the raspberry.