EtherCard icon indicating copy to clipboard operation
EtherCard copied to clipboard

How to implement a long TCP connection?

Open tomcatGu opened this issue 8 years ago • 2 comments

HI, I want use a long TCP connection to reverse control a LED .How can I implement a long TCP connection by using ethercard library?thx.

tomcatGu avatar Nov 21 '17 08:11 tomcatGu

Hello,

Try the persistTcpConnection() function. It's used in the persistence example sketch (though it uses HTTP). Unfortunately I don't think we have a pure TCP example sketch, but I hope this takes you in the right direction.

nuno-silva avatar Nov 21 '17 11:11 nuno-silva

Documentation for the function is available at https://jeelabs.org/pub/docs/ethercard/classEtherCard.html#a5ee4a03e0f5b28bebde97d0426c1ba1a

nuno-silva avatar Nov 21 '17 11:11 nuno-silva