Wednesday, April 9, 2025

0000 0000 1111 1101

A "real life" ESP32 OTA experience

Quite awhile ago I programmed an ESP32 OTA framework for updating ESP32 firmware "over the air" - in other words it is possible to update the firmware (the actual code running on the ESP32) live at the site of the device with no internet, WiFi etc required.

That video (and blog) showed proof of concept but the project was a bit contrived (simply reporting and responding to temperature). 

In the back of my mind were two unresolved issues:

1. Would this work on a "real" project - in this case the control of "grow lights" in a Hot House scenario, and

2. I should really clean up the code to make it more friendly, and furthermore take potential users through the long and boring process of modifying the base files and uploading to an ESP32 in preparation for deployment.

Hence - this video (and some code reworking)!

Firstly I use the KC868 A6 that we have seen before (blog and video).

Then I download the new github repo (linked here)

The next step is to download the LittleFS upload framework for the Arduino V2 IDE (V1 is slightly different - see this link)

Then there is interminable waffle as I put together this project - but feel free to step through to the onsite testing if you're a bit bored! I've also put timestamps in the video description for your pleasure.

All the files on the repo - enjoy the video - try the like and subscribe button, they're free - and also please comment in the section below the video to give me some feedback/suggestions!