All we really need here is a thin shim around send; stop trying to be
clever, it just makes things obfucsated when they go wrong.
Chase consequences around the tree. Extensive testing was done looking
for memory leaks despite the newfound simplicity, with none found.
tcpserv = net.createServer(net.TCP, 120)
tcpserv:listen(23,function(k)
local telnetd = dofile "telnetd.lc"
- telnetd.on["conn"] = function(k) k:send(string.format("%s [NODE-%06X]",mqttUser,node.chipid())) end
+ telnetd.on["conn"] = function(k) k(string.format("%s [NODE-%06X]",mqttUser,node.chipid())) end
telnetd.server(k)
end)