Using ESP32 and Arduino IDE for development.
I’ve got a project and want to have a remote friend update his code. He’s not a programmer. Is there a way to send him a file and have him load it onto his ESP32 with minimal hassle?
Configuring the IDE is such a pain that I’d rather not use that method. I’ve seen reference to Arduino programming but am not aware of such a tool for ESP32. Needs to be a WIN solution.
Any suggestions or pointers?
Reading about OTA updates. That may be an option, but it looks like it will take some effort to install and debug.
I wonder how big the libs are.
The best way is using OTA.
You can use AsyncElegantOTA. It creates a web server where he can upload a new bin file with the new firmware.
I hope this helps.
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in or forum.
The ElegtantOTA is great. Exactly what I was looking for.However: The author has included a “buy me a coffee” link which goes to a web page asking for a credit card. I find this a bit of a security risk as I’m installing the lib in a product. I did a quick look at the code and it is not evident how to remove this “feature”.
Would you consider adapting your code to provide some of the features of OTA, minus the link?
The Buy Coffee option doesn’t appear on subsequent screens, only the machine that has the downloaded source files.
New question. I have html files in the /data subdir. How would I update those?
I don’t know if you’ve seen it, but the author of the library answered a similar question in our blog post. Here’s the answer
“This is Ayush, creator & maintainer of ElegantOTA, I came to know about your comment when a dear follower of mine sent me a email stating your comment. I would just like to issue a bit of guidance for you:
The ELEGANT_HTML code you see is NOT obfuscated. It’s simply a gzipped file in bytes array. It has no potential of harming anyone. The whole webpage source is on the github repository itself for transparency.
Please don’t spread fake news before doing complete research on the topic. You could have compiled the webpage yourself and see if the hash of file was different. Open source is built on trust and I have no intention of disrupting it.
On a side note, the noscript tag refers to “Buy me a coffee” SDK which uses HTTPS and their own domain. For someone to spoof “Buy me a coffee” domain, they have to be on your LAN network which in itself makes it a useless target because the attacker is already inside your network.“
Updating the files in the data directory is explained in the blog post. See the section that mentions “Update Filesystem”.
Thank you for the reply. I understand.
While the ElegantOTA will load the. Bin file, there is still no way to load /data files OTA.
I will ask Sharma about adding that feature.
You can upload files to the data folder if you compile them in bin files first.
It’s everything explained in the project: https://randomnerdtutorials.com/esp32-ota-over-the-air-arduino/