Syncing files over serial
I'm using the LoPy on a Pysense board on a project where WiFi will be disabled.
I want to be able to sync the software to the device independent from the pymakr plugins (I'm using Atom for development). Atom has been somewhat unreliable for me with regard to syncing when connected with the Pysense over serial. And I'd like to automate some things with command line scripts, instead of relying on a current Atom + pymakr installation.
When the device has a network connection I can use an FTP client to upload the code. But what are my options over serial? How are files transferred? What protocol is used?
I found two old questions related to this:
None of them turned up a solution though.
@jubbs I see. With that information, it shouldn't be too hard to write a "directory sync" script :)
You can use the repl.
This guy wrote a simple program for the 8266 which works with lopy. You can see how he uploads using the repl.