OTA of micropython code on ESP32?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Posts: 13
Joined: Sat Jan 21, 2017 12:11 pm

OTA of micropython code on ESP32?

Post by happyday » Thu Oct 10, 2019 4:04 pm

I am exploring "the best" way to do OTA of my micropython code that runs on an ESP32. Do you have any recommendations?

Thank you.

User avatar
Posts: 648
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia

Re: OTA of micropython code on ESP32?

Post by jimmo » Wed Oct 16, 2019 4:47 am

Do you want to update the Python code or the actual firmware?

If it's the Python code, I'm not sure there's a "best" way...probably this is much more a question of how your application protocol works -- actually updating the files on the flash is pretty straightforward. You might definitely want to consider some sort of "safe mode" though -- i.e. never modify main.py, and ensure that main.py has enough logic to download new firmware.

Post Reply