• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Is it possible to create and program from Object Code?

Q&A Forum › Category: ESP32 › Is it possible to create and program from Object Code?
0 Vote Up Vote Down
Barry asked 3 years ago

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?
thanks

Question Tags: user programming
11 Answers
0 Vote Up Vote Down
Barry answered 3 years ago

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.
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
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.
https://github.com/ayushsharma82/AsyncElegantOTA
I hope this helps.
Regards,
Sara
 

0 Vote Up Vote Down
Barry answered 3 years ago

Sara
Thank you very much.  I will follow up on that OTA.
Barry

0 Vote Up Vote Down
Barry answered 3 years ago

I can’t believe how easy that was. Amazing
Thanks to the author.
Barry

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in or forum.
Regards,
Sara

0 Vote Up Vote Down
Barry answered 3 years ago

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?
Thanks
Barry

0 Vote Up Vote Down
Barry answered 3 years ago

The Buy Coffee option doesn’t appear on subsequent screens, only the machine that has the downloaded source files.
My mistake.
New question. I have html files in the /data subdir.  How would I update those?

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi again.

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

ESP32 OTA (Over-the-Air) Updates – AsyncElegantOTA using Arduino IDE

Regards,
Sara

0 Vote Up Vote Down
Barry answered 3 years ago

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.

0 Vote Up Vote Down
Barry answered 3 years ago

Please post a link to that blog. I haven’t found it.

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

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/
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.