These are chat archives for SmingHub/Sming

16th
Jul 2016
gikvin
@gikvin
Jul 16 2016 12:22
Hi! I followed TcpClient example "Sming/samples/TcpClient_NarodMon/", but in this example TcpClient is closing connection and is not permanent. How can i keep TcpClient connected.
hreintke
@hreintke
Jul 16 2016 13:26
@gikvin :
In the client.sendString("#"+mac+"\n#T1#"+t1+"\n#H1#8\n#P1#712.15\n##", true); the last parameter is "forceCloseAfterTransmit" (optional, default false).
To keep it open use : client.sendString("Hello", false) or client.sendString("Hello")
gikvin
@gikvin
Jul 16 2016 13:49
Thank you very much :D I was not able to figure that out. Thanks!