Wireless update of files on a Pico

I read a good while back somewhere (maybe not here) about someone who had created code, I think for an ESP32, which enabled files on the device’s flash to be updated wirelessly.

Wondering if anyone has done something similar in Python for a Pico. I suppose it could be done using a simple web browser system, but what I have in mind probably has complications… like, if I want to update main.py… I’m guessing something may break… if micropython allows you to clobber the running image at all… I wouldn;t assume that it wil… If it does, next step is to reload the new main.py.

So.. plenty of potential gotchas…

Regards,
T.

1 Like

Hi Trevor,

On mobile ATM, but have a look into WebREPL and OTA flashing, both are methods of wirelessly updating the program.

1 Like

ESP32 with Arduino or ESP-IDF has built-in OTA support. Pico with MicroPython? You have to roll your own.

1 Like