luatool
Posted: Thu Nov 27, 2014 3:40 pm
luatool - simple way for loading "clear" lua file into NodeMCU flash memory.
New version 0.5 released
Main difference from drag-and-drop method on CoolTerm:
- not needed lines for open and close file: file.open("init.lua", "w+"), file.close()
- you can use "clear" lua files, script automatically add wrapper construction "file.writeline([[" + file_string + "]])\r"
- luatool check NodeMCU answer after sending data
Changelog
v0.5
add new option -r, --restart : auto restart module, send command "node.restart()", after file load
add new option -d, --dofile : auto run, send command "dofile('file')", after file load
delete line "lua script loaded by luatool", lines number now equal lines number in original file
add 0.3 sec delay after write
New version 0.5 released
Main difference from drag-and-drop method on CoolTerm:
- not needed lines for open and close file: file.open("init.lua", "w+"), file.close()
- you can use "clear" lua files, script automatically add wrapper construction "file.writeline([[" + file_string + "]])\r"
- luatool check NodeMCU answer after sending data
Changelog
v0.5
add new option -r, --restart : auto restart module, send command "node.restart()", after file load
add new option -d, --dofile : auto run, send command "dofile('file')", after file load
delete line "lua script loaded by luatool", lines number now equal lines number in original file
add 0.3 sec delay after write