Arduino doesn't reconnect to internet and/or server when it temporarily loses connectivity
Opened this issue · 2 comments
Comcast connection died for about 10 minutes. When the internet came back, the Arduino didn't reconnect and start sending temp requests again.
After pushing the reset button, it rebooted and started sending requests again.
In fact, I think the Arduino should a) indicate with the LED when it has lost connection to its server and b) try to fix the problem (by resetting itself?)
Yeah the Arduino definitely doesn't deal well with network connectivity blips. It died overnight and multiple times in the past few hours.
I think the Arduino disconnecting may have been partially due to a short-circuit somewhere in the Arduino. I taped up lots of exposed connections, and the Arduino stayed connected to the dev.keg.io server from Thursday evening at ~10pm to at least Friday night ~midnight.
I still think the Arduino needs some code that tries to repair its internet connection if it loses connectivity. There should probably be some sort of exponential back-off on these attempts too.
Also the LED light should represent loss of connectivity so a user knows to restart. Maybe flashing yellow while the Arduino is trying to repair connectivity, and then flashing red after 3 failed attempts?