Template upload failed (ota api)

Hi,

today I got my "Plug and Make" Kit and the experience of setting it up under Linux is quite underwhelming tbh. I managed to deal with the other problems, but I'm stuck now at the step where I'm supposed to upload the template (Plug and Make Getting Started) to my Arduino (Arduino | Account Settings). The compiler finishes and then I get the Error:

Template upload failed

An error occurred while uploading the template. Please try again or contact support if the issue persists.

can't access property "ota", s.data is undefined

When I check Chrome Devtools, I can see a POST https://api.arduino.cc/ota/v1/ota which responded with 403, so I guess that's the issue.

Please help! Thanks!

This is the second topic today about problems uploading templates to the Plug and Make Kit.

The other one is arduino-r4-wifi-sketch-is-not-compiling.

Thanks for pointing that out! The other post is about compiling though, if I understood it correctly. I don't have an issue with compiling

Hi @ferlnand, we just released an update to Arduino Cloud containing changes in the template flow that should fix the issue you’ve encountered.
Please let me know if you still have problems applying templates!

Hi, thanks for the reply. Now it just says "OTA upload is not available with your current plan". I'm confused why.

Hi @ferlnand. Are you using the "Free" Arduino Cloud plan? If so, this is expected. The OTA upload feature is not available when using the "Free" plan. You must upgrade to the "Maker" plan in order to use that feature:

https://cloud.arduino.cc/plans#:~:text=Over-the-air%20updates

But you can still use your Plug and Make Kit in Arduino Cloud IoT projects even with the "Free" plan. You only need to upload the sketches to the UNO R4 WiFi board via the USB cable instead of over the Internet.

The OTA upload feature is very useful in cases where you don't have convenient access to a project to connect it to your computer with a USB cable. However, as long as you can easily make the USB connection to the board you won't really miss the feature too much. So you should be able to make some amazing Arduino Cloud IoT projects with the "Free" plan. If you do eventually find that you really need the OTA uploads feature, hopefully you will see enough value in the Arduino Cloud service to feel it is worth signing up for the paid "Maker" plan.

Hi, thanks for the explanation. Yes, I'm using the free plan. Is having a "Maker" plan a prerequisite for the setup guide of the plug and make? Because there it says " * Have your Wi-Fi® network credentials close at hand." and "if issues persist, revisit the previous step to re-import the template and double-check your network credentials.". So I assumed you have to use the ota method. Besides that, ota was the default for the sketch upload (not usb) and it didn't work (now I can see why) and at that point I didn't know how to change it.
I think the guide should clarify that the usb connection should be set up or activated if you're on the free plan.

Thank you for your support!

Cheers

No.

The network credentials are required to allow your Thing to communicate with the Arduino Cloud server via the Internet while the sketch program is running on the UNO R4 WiFi board. So even when you are uploading via the USB cable, the credentials are still relevant.

This communication via the network to send data back and forth between the Arduino Cloud server and the board is available even with the Free plan, and is fundamental to any Arduino Cloud IoT Thing project.

However, you can also do all sorts of amazing things with the Plug and Make Kit that don't involve the network. Arduino Cloud IoT projects is only one of the interesting and useful applications for which the kit is capable of being used.

Yep, got it! The confusing part was just, that ota was selected by default and it tried to do the upload via ota (and failed, which I understand now why).