Hi everyone ,
I'm using the official Arduino WiFi Shield to act as a client with my computer.
If necessary I'll upload the whole code , but it's kinda long and most of it is unnecessary since it basically works like this :
-Connect to the WiFi network , then to the computer's IP to a specified port (eg 10010)
-Send some stuff , don't wait for the response
-Disconnect (release the socket) with client.stop().
I'm testing the behaviour with a port listener(RLJ's) and all runs well except for the last part of the content to be sent,and the disconnection ;basically if I look up the port listener incoming data , it'll show:
almost everything that's supposed to be sent
and that's it. The only way to receive that last part of the content , and to show a "Client disconnected " on the port listener's console , is to either :
-Restart the arduino without powering it off , and in this way it'll deliver that last message part and will be detected as disconnected and connected again right after
-Connect the computer to a different network while the arduino's still on , and it'll behave the same way , minus the reconnecting part.
Powering off the Arduino won't cause the above behaviours. Also it behaves in the exact same way with the WiFi client example , meaning that connecting the arduino to google itself goes smooth, but using the port listener to see what the arduino is sending still won't display the "Client disconnected" at the end.
So, do you think that it's using a port listener that's wrong because it isn't a "real" server , or is it a problem with the shield itself, or with my code ?