@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.
OTA of micropython code on ESP32?
-
- Posts: 59
- Joined: Mon Mar 29, 2021 1:36 am
- Location: Brisbane Australia