Update your ESP32 boards over-the-air (OTA) with Arduino Cloud
The Arduino Cloud is Arduino’s integrated platform to develop, deploy, monitor, and control IoT devices with minimal effort. It enables makers, IoT enthusiasts, and professionals to build easily connected projects based on a wide range of hardware including not only Arduino boards, but also ESP32 and ESP8266 boards. Arduino is committed to making all the Arduino Cloud features available to all the supported hardware and as a result of this effort, ESP32 family of chipsets now support over-the-air (OTA) updates.
The Cloud for Makers
Due to their low price, integration and high performance, ESP32-based devices are among the most widely used ones for hobbyists and developers who want to create their small home appliances.
One of the facts that have contributed to this popularity is the ability to use the Arduino IDE to code and program the devices. You can find tons of resources describing how to get started. There are thousands of projects that will inspire you and help you create and develop your own ideas. You can reuse the code and sketches even if they have been originally developed for other ESP32 or Arduino boards. It is so easy to get started!
But what if you want to go a step further and interact with your devices remotely? That’s what Arduino Cloud was designed for. It is an online platform that enables you:
- to develop your software online with the zero-touch Web Editor, keep your sketches in the cloud and share them with other users.
- to deploy and manage your devices with the IoT Cloud and your custom dashboards that can be accessible remotely from your browser or the mobile app Arduino IoT Remote.
All that with just an integrated unique platform and taking benefit from the rich collection of Arduino’s libraries, examples and tutorials that help developers get at speed with minimum effort.
No cables any more: Update over-the-air
But programming the devices is still tedious work. You need to have the device at hand and connect a USB cable. This is acceptable for the first time you program the device, but it is really annoying when your device is already installed in a place with difficult accessibility. In those situations, you either have to remove the device from its place or bring your laptop as close as possible to its location.
That’s where over-the-air (OTA) is a game-changer. This feature enables you to upload programs wirelessly to your boards. This way, as soon as you have a compatible board connected to a WiFi network and configured to work with OTA, you won’t need to physically connect the board to the computer in order to upload new sketches to it. Instead, everything will work over-the-air.
OTA for ESP32 now available
Over-the-air updates have been traditionally constrained only to Arduino boards and this feature has been widely adopted by users. Now, this support is extended to ESP32 boards. This unifies the experience across the most popular platforms.
There are plenty of ESP32 platforms available with different processors and memory sizes. This is an experimental feature that has been tested on the most popular ones, but there could be some limitations on some of the untested ones. We would be delighted to get your feedback.
Get started now
Getting started with over-the-air updates is as simple as following the steps in the Uploading sketches Over-The-Air (OTA) tutorial. You can also find some useful tips and tricks in the cheat sheet. Give it a try, and share your experience with the community.