This will keep trying to get an ip forever until it gets one. Is that what you want?
Well that could definitely help- Thank you- However my issue is that the rest of the sketch - the remainder of set up and loop- will not run.
I have functionality in this code that can run locally and notify the user - when they look- via lcd that there is no connection. The problem is that without the ethernet connection established nothing works.
If on start up the Ethernet connection is established it runs fine, even if afterwards the cable gets disconnected for a few turns of the loop it happily reconnects once a network is available again. I live in an area where the power goes of regular and the restarting of the modems takes infinitely longer than the Arduino.
I have yet to find out what happens when the DHCP server decides the lease is up and someone else takes the address in the mean time. reboot solves all but I am putting in sensors on a remote locationand hope to have reliable connection for 30 days at a time...
Thanks again,
Erick