Does an Arduino Cloud generated thing include an OTA interface usable with the IDE?

IDE 2.3.4
LINUX MInt 22.1 up to date

Hello,

i created an ESP32 based thing using the Arduino Cloud without problems.

AFAIK, the thing should be ok for OTA out of the box (via the Cloud)?

Now, I downloaded the scetch for further editing in the local IDE.

So my question:
Is there a way to OTA update the thing via the IDE?
Anyways, i doesn't show up in the board selector with its IP address, so, no means for OTA update?

Just to make sure everything is setup OK, i tried the BasicOTA example to rule out any problems with firewall etc.
With the BasicOTA scetch OTA update works without problems from the IDE.

Any thoughts?

Best Regards

BTW: I did update the arduino_secrets.h to the correct values as they are not copied from the cloud scetch to local for security.

Hi @corel8_1.

Arduino IDE uses a different OTA upload system, which was established long before the creation of Arduino Cloud. When the IoT features of Arduino Cloud were created, the developers implemented a more advanced approach to OTA.

OTA uploads via Arduino IDE are enabled by using the "ArduinoOTA" library in your sketch. This library is bundled with the "esp32" boards platform that adds support to Arduino IDE for the ESP32-based boards. The "BasicOTA" example you mention using is one of the examples of the "ArduinoOTA" library.

If you want to perform OTA uploads using the Arduino Cloud system using a local tool, check out the Arduino Cloud CLI command line tool that Arduino provides:

https://docs.arduino.cc/arduino-cloud/arduino-cloud-cli/getting-started/#ota-over-the-air

Ok, many thanks for your answer.

I tried the cli tool as desribed in the link above.

I get following error message not providing any credentials:

Error during ota upload: retrieving credentials: credentials have not been found neither in environment variables nor in the current directory, its parents or in arduino15

So, i need to provide credentials, which in turn i can derive from https://app.arduino.cc/api-keys

But this needs a plan other than the free plan, i.e. upgrade to a billable plan?

best regards.

p.s. Just one hint for users: In order to address the correct *.bin file, use the Sketch->Export Compiled Binary function from the IDE, which will create a /build folder in your scetch folder containing the *.bin file

That is correct. I should have mentioned this requirement. As you say, you must have at least the "Entry" Arduino Cloud plan in order to perform OTA uploads using Arduino Cloud CLI. This plan level is also required to perform OTA uploads via the Arduino Cloud Editor web interface.

Ok, many thanks for this clarification.
Best regards

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.