Hi,
I have a Arduino with Ethernet shield as a client with static IP address and I need :
1- to make sure it is always connected to the remote server. The client will try to connect until it is connected. It is responsible to maintain the connection 100% of time.
2- the client must send a message every 10 seconds to the server and get a response from server. Message sent will be: “Client-Reader”, we will expect to get “Pc-Server”.
3- If server does not answer or if a bad message is received, after 3 times, the client will disconnect and try to reconnect until it is connected.
4- The client must be able to receive messages from the server in between the 10 seconds polling messages.
5- The client must NEVER fail, it must always be able to reconnect to server and/or recover from any unexpected condition.
6- If the static IP is changed (we will be able to change it by radio link), the client will need to disconnect and reconnect to the server
7- Need all of this in AVR studio 6 for Arduino Mega (AtMega2560) + Ethernet shield with Wiznet W5100.
Thank you