Open florentvaldelievre opened 8 years ago
@stevstrong, @agdl Did you experience the issue and managed to solve it ?
I guess maintain() of ethernet class in loop() is missing, because you use dhcp.
I 've too a similar problem, using static ip. Somebody found a solution?
I had this problem. I have the Wiznet5500 chip, static IP address. I could make 3 requests, and the 4th would always fail. Oddly, if I requested from an external IP, it would still work >3 requests, but internal IPs it would not. Maybe this was coincidence. Anyway, the problem was my fault: I had defined EthernetClient twice, and was client.stop() ing the wrong EthernetClient. Worked perfect after that.
System: Ethernet lib 1.1.2, ATMega 2560, Ethernet shield, arduino IDE 1.6.12 Description: client.connect() returns 0 after several successful POST requests
It seems to be exactly the same error as ISSUE-15. Unfortunately, the proposed code does not solve the problem on my side.
Detailed description: I am sending small amount data into an elasticsearch server using POST request every 2 seconds. After a while, could be 15 minutes, could be hours, Ethernet client does not manage to connect to my server ( Server up and running for sure ). At this step, The ATMega is not pingable anymore. The only way I have found to make it working again is to unplug/plug the power source.
Ive made sure I have the following line in EthernetClient.cpp as mentioned in http://forum.freetronics.com/viewtopic.php?t=176
And you will find below the code:
Any idea ? I have been battling for months on this problem. Thanks !