Go Down

Topic: Check for Ethernet/Internet connection & re-establish if lost? (Read 1 time) previous topic - next topic



Wonder what would be the best/most reliable way to check an Ethernet/Internet connection during the loop so that it can be restablished if it has failed?  For example, if Arduino has remained powered but the router has been reset the network connection is lost so needs to be renewed - This would be using the Arduino WizNet shield and Library.

Thanks for any piinters.


You can look (in this forum as well) for implementations of ICMP ping. Then you can periodically ping your router and try to reconnect if you get no answer. Ethernet.maintain() seems a good choice. A GET request to a web server can also do the job, but it takes longer and is a less reliable indicator of a local network problem.

Go Up