Scripts for fast uploading many files at once into NodeMCU ESP modules.
Note: The original Python script for fast file uploading was written and shared by Markus Gritsch in article Lightning-Fast File Uploads on ESP8266 Community Forum. The original scripts along with some usage instructions are stored for convenience at: https://github.com/dev-lab/esp-nodemcu-lua-uploader-org .
- Make sure that Python 2.7 and pyserial are installed.
- Copy the content of this repository into some directory on the local drive, e.g.:
C:\Proggy\ESP8266\uploader
. - Change the environment variable
ESP_LUA_PYTHON_DIR
inuploader.bat
to point to the directory where the python scripts are installed. - Copy
uploader.bat
to the directory from where you are going to execute it (or make it available in any convenient directory listed inPATH
environment variable). - In case if your NodeMCU module is flashed with older NodeMCU (e.g.
0.9.5
) changeuploader.bat
to invoke uploader.py instead of uploader1.py (uploader1.py is a patched script which works ok with new NodeMCU firmware built using NodeMCU custom builds). - Modify
com_port
variable in uploader1.py (or uploader.py if required) to point to serial port which is connected with NodeMCU ESP8266 module.
- Configure your ESP module to communicate on 115200 baud rate as described in https://github.com/dev-lab/esp-nodemcu-lua-uploader-org , or change the
baud_rate
variable in uploader1.py to baud rate supported by your ESP module. - Pass to
uploader.bat
the directory with files to upload to NodeMCU ESP module and watch the process in console window. In case of error you will see the corresponding message.