I have been playing with Uno R4 WiFi and find that intermittently,
server.available()
does not return the connection.
Hard to track this down in the ESP side, but symptoms are as follows
start up server listening on port (actually 4989 in my test case.)
connect from terminal
server.available() does not return the connection.
i.e. the output
Serial.println("We have a new client");
is not printed.
The client side sees an open socket and can send data but since the arduino code does not see the connection nothing is returned.
The client side times out waiting for the response and reconnects.
Same result.
This seems to depend on the timing between starting the client and the server.
If you kill the client and reboot the Uno R4 WiFi then restart the client it ususally works.
I note that the ESP code allows for 8 clients. One would be enough for my purposes.
