The whole point is that, if the user is going to implement something like a garage door opener, or light switch, or a remote sensor, then he shouldn't have to worry about things like the compiling, or the wifi config, or a webserver implementation.Īnyways, I'm wondering if there's any community interest in the above? If so, I could upload the whole thing to a repository or something. I'm working on additional web interfaces, such as to bring the tftp server up/down, configure the web authorization, reboot the module, maybe enable/disable the lua server (aka telnet server).
#Esp8266 tftp client serial
added a tftp server in lua, which means easy remote upload of files without the serial line
It's gotta be the ugliest webpage in the entire internet, but it works. implemented a wifi html front end to configure the entire wifi settings group. Looks like I broke my NodeMCU Lolin esp8266 module, please confirm) Firstly everything worked. packaged and implemented several tools under one lua object (ll, mv, more, listap) TFTP client error when trying to open the requested file. automatic compile of any lua files found on bootup They all server on the same port, obviously, but it works. I also have a modbus server module in the works. Then I took the luaserver example included with the nodemcu examples and refactored that into a server module, and now I can run both the http server and lua server at the same time. I created one in SiteGround, we could also create one using our local computer. We also need an FTP server to tests around. With a quite rather misleading name ( WiFiClient ), these available functionality should give us all the tools required to implement our FTP client. Then I wrote a generalized TCP server, to which you plug in server modules, and plugged the http server into it. Luckily, there is a TCP client library developed for ESP8266 Arduino. I started with Marcos's http server and added a couple of missing fixes, then I refactored it into a module. I sort of got tired of the whole thing and decided to separate some components. Then there's the limitation of having only a single TCP server up at any one time.
I looked at Marcos Kirsch's http server (in pure lua), which I found to be quite nice, but it also had all of these components mixed together.
#Esp8266 tftp client code
Is there any interest in a generalized lua platform on top of the nodemcu firmware? What I mean is that I see a lot of lua examples that have components intermixed: wifi handling and setup, lua file compiling, http server, lua server, even a tftp server, all always mixed up in one single lua code blob somehow.