EtherCard
EtherCard copied to clipboard
How to implement a long TCP connection?
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.
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.
Documentation for the function is available at https://jeelabs.org/pub/docs/ethercard/classEtherCard.html#a5ee4a03e0f5b28bebde97d0426c1ba1a