Hello,
this simple code is showing randomic behaviour. Data is sent only 2-3 times, sometimes up to a dozen times, then it completely stops.
I'm listening on the PC side with "nc -k -l 8080".
#include <Ethernet.h>
void setup(void) {
Serial.begin(9600);
Ethernet.begin(0);
Serial.println(Ethernet.localIP());
}
void loop(void) {
EthernetClient client;
client.connect("192.168.1.219", 8080);
client.write("abc\n\n");
client.stop();
sleep(1000);
}
It looks like some buffer is not being flushed.
Any hints? client.stop() / client.flush() don't seem to help.
Th