For ESP32: Using Arduino IoT-cloud LOCALLY with Arduino-IDE


I would like to use the cloud-functionality for accessing my devices from anywhere over internet while I want to do all the developping locally on the locally started Arduino-IDE.exe.

The Webeditor offers to download the sketch as a zip-file.
the additional *.h-file thingProperties.h

has two includes

#include <ArduinoIoTCloud.h>
#include <Arduino_ConnectionHandler.h>

I looked up the library-manager if I can find these libraries
The library-manager says

supported boards are MKRGSM, MKR1000, Wifi101

The GiPo says
WiFi: MKR 1000, MKR WiFi 1010, Nano 33 IoT, Portenta H7, ESP8266

But inside Arduino IoT there is a tutorial
that claims that ESP32 is supported.

So where can I get the two include-files

#include <ArduinoIoTCloud.h>
#include <Arduino_ConnectionHandler.h>

that fit to the ESP32?

best regards Stefan

Yes, but note that the support is considered do be at an experimental state at this time.

Just install them from Library Manager. They are the ones you're looking at.

Make sure to fill in your credentials in the arduino_secrets.h tab of your sketch.

I am also facing the same problem when I tried compiling the code after installing ArduinoIoTCloud. I am getting error

Multiple libraries were found for "WiFi.h"

Used: C:\Users\hp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi

Not used: C:\Users\hp\Documents\Arduino\libraries\WiFiNINA

Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

Using library ArduinoIoTCloud at version 1.0.2 in folder: C:\Users\hp\Documents\Arduino\libraries\ArduinoIoTCloud

Using library Arduino_ConnectionHandler at version 0.6.4 in folder: C:\Users\hp\Documents\Arduino\libraries\Arduino_ConnectionHandler

Using library WiFi at version 1.0 in folder: C:\Users\hp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi

Using library Arduino_DebugUtils at version 1.1.0 in folder: C:\Users\hp\Documents\Arduino\libraries\Arduino_DebugUtils

Using library WiFiClientSecure at version 1.0 in folder: C:\Users\hp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFiClientSecure

Using library ArduinoMqttClient at version 0.1.5 in folder: C:\Users\hp\Documents\Arduino\libraries\ArduinoMqttClient

exit status 1

Error compiling for board DOIT ESP32 DEVKIT V1.

I tried changing the versions one after other still I could not move forward.
In fact my attempt to connect ESP32 in cloud editor failed with no clear reason. I have a ESP32 DEVKITV1

Any help plz?


We will need to see the full error output. You have omitted the part that provides the cause of the error.

Please do this:

  1. When you encounter an error, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
  2. Open a forum reply here by clicking the Reply button.
  3. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  4. Press Ctrl+V. This will paste the compilation output into the code block.
  5. Move the cursor outside of the code block markup before you add any additional text to your reply.
  6. Click the Reply button to post the output.