i am trying to echo any text i send to esp8266 back to terminal
sv=net.createServer(net.TCP, 30)
sv:listen(80,function(c)
c:on("receive", function(c, pl) send (pl) end)
end)
however i am getting an error
also tried
sv=net.createServer(net.TCP, 30)
sv:listen(80,function(c)
c:on("receive", function(c, pl) print ("ok") end)
c:send(pl)
end)
again not working
any suggestion what am doing wrong ?