Post your best Lua script examples here

User avatar
By Donquixote2u
#43188 The advantages of remote programming seem pretty obvious if you have a sensor stuck outside somewhere, so I was quite excited to read this blog post http://nutandvoltz.blogspot.co.nz/2015/02/esp8266-remote-lua-console.html which uses a telnet function on the ESP8266 talking to Esplorer via tcp and a redirected dummy serial port in Esplorer;

So I tried it, and it seems to work! The only problem I had is I'm running Debian Linux , not windows; so I tried to set up a port redirection using socat; It's such a complex utility it did my head in a bit; once I added line-end parameters it started working. It looks like this:
Code: Select allsudo socat pty,link=/dev/virtualcom0,raw,crnl tcp:192.168.0.104:8080
although I had to add the appropriate permissions to the device file once it had been (automatically) created so that Esplorer could use it.

So whether Windows or Linux user, this might be a useful add-on technique, and I'm grateful to the blogger, Omar, for exposing the possibilities here.