I'm new to EMW3165 and lua but trying to get up to speed. I've recently tried to make a telnet server that passes it's input straight to the lua interpreter (using loadstring) and then passes the output back to the client, this is one of the main examples on NodeMCU but I couldn't find it on WiFiMCU anywhere. the code i have so far is as follows(it is called by a dofile call in my init.lua);
The issue is that this crashes the emw3165 when a command is sent (">>>>>>>>>[" is printed, then the device restarts). In fact just doing the following
I'm new to EMW3165 and lua but trying to get up to speed. I've recently tried to make a telnet server that passes it's input straight to the lua interpreter (using loadstring) and then passes the output back to the client, this is one of the main examples on NodeMCU but I couldn't find it on WiFiMCU anywhere. the code i have so far is as follows(it is called by a dofile call in my init.lua);
The issue is that this crashes the emw3165 when a command is sent (">>>>>>>>>[" is printed, then the device restarts). In fact just doing the following
is enough to make it crash? However calling loadstring over serial works fine. Why does this not work?
Thanks,
Adam