I'm new to the EMW3165, lua and wifiMCU but I've been playing around with them and ended up writing some code which allows you pass through data from a tcp socket to the lua interpreter, so I thought I'd share in case anyone was interested (as this is one of the first examples on nodeMCU's site, and I couldn't find an example for WiFiMCU, and allows you to access the lua interpreter from programs such as PuTTY for example). (N.B. this doesn't seem to work on firmware <= 0.9.5 due to issues with loadstring).
code is here https://github.com/adampolar/WiFiMCURawTCPSocketLuaInterpreter/blob/master/WiFiMCURawTCPSocketLuaInterpreter.lua
Any advice appreciated.