It works fine, sending data as expected, except, occasionally the "round trip time" (time from sending to receiving the reply from the RPi), which is usually around 10 to 50 milliseconds, will have throw up a value of 2K to 3K milliseconds, ie up to 3 SECONDS.
I put a counter in the "reply wait loop" to make sure it was actually waiting, and the ESP hadn't meandered off somewhere.... all good, so looked at the response times from the webserver/PHP end,..... again all good, so Wiresharked the "conversations", and it appears the delay is at the ESP12 end.
Normally from the initial SYN from ESP (start of conversation) to the FIN (end) packets is real quick, then I get these odd pauses....
I can add all sorts of supporting info, code, stats, etc if this grabs anyone's interest, but hopefully the Wireshark capture image should demonstrate the problem.
Anybody got any ideas as to what's going on there? I've tried adding setNoDelay(true) and/or setSync(true) but nothing I did would get rid of these excessive times, sometimes around 5% of the transmissions.