OTA of micropython code on ESP32?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
bulletmark
Posts: 59
Joined: Mon Mar 29, 2021 1:36 am
Location: Brisbane Australia

Re: OTA of micropython code on ESP32?

Post by bulletmark » Sun Oct 31, 2021 10:18 pm

@rikvermeer, there is no class method `Partition.set_boot`. When Python (or MicroPython) executes `nextPartition.set_boot()`, then that is effectively mere syntax sugar for `Partition.set_boot(nextPartition)` due to Python's implicit self argument so you are doing the same thing and have changed nothing compared to what you originally wrote here.

And unless you are doing a `Partition.mark_app_valid_cancel_rollback()` as I stated above, then the new partition will not "stick" and will get rolled back to the original partition at next boot.

Post Reply