Hello. I need to periodically send data on the internet and I am sucessfully using the official ethernet shield and library The arduino only acts as CLIENT.
What I am doing is this:
A) Check if the connection in ON
B) if not connect
C) send data
read and parse server answer
E) once obtained the right answer or once a timout elapses call
This works but I may be I can make it better understanding more deep what ethernet methods do.
My questions (unresolved afer reading the internet reference and the library code) are:
checks if the connection is opened only SERVER SIDE speaking? (On TCP it is like we have 2 connections, one server side and one client side).
2) If point "A" give false do I have do call
before call the
on point "B".
3) Does the
funtion only close the connection client side speaking? (I call the close every time I send data because I know it is not a good practice to leave too much connection opened to the server, but if it acts only only on client side...)
Thanks for you help if you could answer!