Yes, but an "API Rest call" may not be what needs to be used.I'd like my Pico W to boot up - do an API Rest call to my server, retriver the "Sensor.py" file - save it locally on the Pico W and then execute the file.
Is that possible?
I wouldn't recommend either. I would leave 'boot.py' as is, have 'main.py' call 'download.py' to load the latest and then run the latest 'sensor.py' you have.Should I have my "get file" code in the boot.py? And save the sensor.py as main.py?
Should be achievable.My goal is to have the Pico W get the latest version of its code everytime it reboots
Not that I know of. Google may know better.Any sample projects that I can look at?
The basic Proof of Concept code should be fairly trivial so, when I get a few moments to spare, I'll see what I can create.
Statistics: Posted by hippy — Sat Apr 27, 2024 1:34 pm