mcsa wrote:Can I write lua script, save it in file and then run it at startup?
Can command accept via tcp, like telnet? Or only via uart?
telnet or command via tcp are not supported out of box.
but you can start a tcp server to accept lua and run it like this:
s=net.createServer(net.TCP)
s:listen(8888,function(c)
c:on("receive",function(c,pl)
print(pl)
pcall(loadstring(pl))
end)
end)
then, you may connect to the module and send command via tcp.
you can also put this in init.lua and run it after startup.
I will add some api to re-direct uart input output in the near future
Squonk wrote:Nice!
Is there a chance to get the sources soon?
it's free but not open source for now,
I hope this will happen soon when the api is stable,
and lua script can run over these api without change even on different wifi-soc,
not only esp8266