UIPEthernet: A plugin-replacement of the stock Arduino Ethernet library for ENC28J60 shields and breakout boards. Full support for persistent (streaming) TCP-connections and UDP (Client and Server each), ARP, ICMP, DHCP and DNS. Build around Adam Dunkels uIP Stack. Further developed version can be found on https://github.com/UIPEthernet/UIPEthernet
enc28j60 server connection only 4 times
while (true) { if (!client.connect(IPAddress(192, 168, 1, 111), 123)) { delay(100); Serial.println("not connection"); } else{ break; } }
//action
repeats this process only 4 times
enc28j60 server connection only 4 times
while (true) { if (!client.connect(IPAddress(192, 168, 1, 111), 123)) { delay(100); Serial.println("not connection"); } else{ break; } }
//action repeats this process only 4 times