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.
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:
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
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.