Chat about current Lua tools and IDEs

User avatar
By keen4
#17995 1. I have myfile.lua -> Save to ESP -> on download end I get dofile("myfile.lua") .. myfile.lua is running
2. than I make a change in myfile.lua and want to do the same as I did in first point and I get :
myfile.lua:8: only one tcp server allowed

Of course because previous lua file is running ... I think like this ..
----------------------------------------------------------------------------------------
What I want:
- stop running the first file ... maybe I need to close server first
- Save to ESP next file and run it ..
User avatar
By 4refr0nt
#18002
keen4 wrote:stop running the first file


Simple way to stop any script on NodeMCU - reboot ESP8266 :D
ESPlorer can help you make it easy. Connect USB-TTL RTS pin with ESP8266 REST pin. Now you can make fast restart ESP8266 by RTS button in ESPlorer ( first click - button down and secon click - button up)
Also, you can use DTR pin.
User avatar
By keen4
#18022 yes, you have right, but ..

- when script is running, nodemcu still receiving & execute commands,
- =node.heap() --> send ..... everything works except Reset
- Soft restart by user command
Žë‹•ąrEÖŃ…Éѡ)
stdin:1: unexpected symbol near ...... Reset button bottom right does not works, why ?
-------------------------------------------------------------------------------------------------------------------------
- left bottom screen:
Save&Run Save&Compile Save&Compile&Run Save As init
Save&Compile All Viev on ESP View on ESP Save&Compile

- what is meaning of this buttons? .. it seems they are not active ..
only Save&Compile sends fs.info

- Save to ESP .. ok I know how it works
- Send to ESP .. what for ? it send file to ESP , and than ? what for is this button ?
- Run: it try to run a scrip presents in text editor .. it has any sense ?
- Upload: i .. BinaryFileLoader: Error, file xx.lua can't be read! .... ok maybe cannot upload*.lc file

- what is Frankenshtein ? .. comming soon it responds