A simple tool for uploading files to the filesystem of an ESP8266 running NodeMCU as well as some other useful commands.
It should work on Linux, Windows, and OS X; and with any type of file that fits the filesystem, binary or text.
–port and –baud are set to default /dev/ttyUSB0 and 9600 respectively.
###Upload Uploading a number of files.
./nodemcu-uploader.py upload -f init.lua -f README.md -f nodemcu-uploader.py [--compile] [--restart]
Uploading a number of files, but saving with a different file name.
./nodemcu-uploader.py upload -f init.lua -d new_init.lua -f README.md -d new_README.md [--compile] [--restart]
Uploading a number of files and verify successful uploading.
./nodemcu-uploader.py upload -f init.lua -f README.md -f nodemcu-uploader.py -v
###Download Downloading a number of files.
./nodemcu-uploader.py download -f init.lua -f README.md -f nodemcu-uploader.py
Downloading a number of files, but saving with a different file name.
./nodemcu-uploader.py download -f init.lua -d new_init.lua -f README.md -d new_README.md
###List files
./nodemcu-uploader.py --port com1 file list
###Format filesystem
./nodemcu-uploader.py file format
This is almost an implementation of xmodem protocol for the upload part.
SOH, size, data[128]
This gives a total 130 bytes per block.
The block size was decided for…