uart.setup(0,115200,8,0,1)
file.remove('config.lc')
sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(sck, c) uart.write(0,c) end )
sk:connect(1234,ipTCP)
uart.on("data", 1,
function(data)
sk:send(data)
end, 0)Is there a way to see if the Connection to the server is lost and then try to reconnect?