OTA or not OTA that is the question...



  • @robert-hh Hi Robert, so I can download a new boot.py an main.py, and also add other files in /flash/lib for example, and after reset, my device running the new code right? I know that FTP is not secure, but I can enable it only during this step and change the default password XD. Now, I do some tests.

    Thx



  • @jylaxx You can make your owh OTA mechnism for user program update, by writing a protocol that downloads a new script. You can even replace the code of the script that is actually running, even if that might not be safe. And there is machine.reset() to restart you device.

    You could also use the built-in ftp server to upload new code, if the device is accessible for remote clients, even if that is not reccomendet, since the connection is not secure.



  • @jylaxx I am looking for the same answers. I would know if it is possible write a micropython code that connect to my server, download a new version of '/flash' and replace the older.

    In other words a FS Update OTA feature.


 

Pycom on Twitter