Server connection event
Posted: Thu Jan 08, 2015 11:05 am
In the following example, it seems that the connection event is not working (using NodeMCU 0.9.5 build 20150108)
At least i never get the "connect" message...
did i do something wrong, or is this behavior unintentional?
At least i never get the "connect" message...
Code: Select all
s=net.createServer(net.TCP)
s:listen(8007,function(c)
c:on("receive",function(c,l)
uart.write(0,l)
end)
c:on("connection",function(c)
print("connect")
end)
c:on("disconnection",function(c)
print("disconnect")
end)
end)
did i do something wrong, or is this behavior unintentional?