I've got it to run as-is, but as I get into making modification and debugging I have several questions about the code. I'm familiar with programming in general, but have never used Lua. I understand that Lua is a programming language in its own right, but perhaps there are some special approaches to coding and program structure needed for the NodeMCU environment that I need to understand? For example:
1) The code makes extensive use of function form "dofile("sourcefile.lua"), instead traditional function calls functionname(parameter). Is there a reason for this in the NodeMCU environment?
2) The code uses constructs like this to control timing and sequencing:
tmr.alarm(0, 1000, 0, function()
statement1
statement2
...
end )
Again is there a reason for this type of structure? e.g. perhaps CoRoutinesare not supported in NodeMCU?
3) I have been using LuaLoader 0.91 to upload and debug. It has a number of issues, including a seeming inability to run serial faster than 9600 bps. Even for small files, this makes the upload process quite slow. I see that there has been no updates in 2 years. Is there another IDE or environment that is now more current and active for NodeMCU development with the ESP8266 WeMOS D1 mini type of modules?