As the title says... Chat on...

User avatar
By max_imum2000
#9603 hello
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 ?