Hello, I think this is the right section, but it seems everything has been reshuffled here.
Anyway, I made a gadget that uses a nano with a W5100 ethernet shield to act as a watchdog over my shop. I set it up as a server that I can access over my phone. Everything works fine except that after about a week of uptime, it loses it's web connection. I am no internet expert, so I don't know all the correct terms.
A bit of history: Originally it lost it's connection about once a day, but I added this to the main loop:
Ethernet.maintain();
CheckInternet();
if(millis() - ethernetResetTimer > ETHERNET_RESET_TIME)
{
ethernetResetTimer = millis();
Ethernet.begin(mac, ip);
server.begin();
}
Now it stays up for about a week. Can anyone shed any light on why this is happening? Thank you!