I am troubleshooting an issue where I have a wifi breakout CC3000 POSTing to a server, and after so many days, it stops. As I change my code, I am also having some connectivity issues where the Arduino won't connect to the router, or it will show it's ip as 0.0.0.0.
In researching this, I found a post by Nick Gammon that when using a watchdog, if the wifi hangs, and the watchdog fires, then the wifi still is not reset, so it stays hung. He said the chip should be reset in the setup to make sure it resets fully. He recommended something for the shield, but I am using the breakout that doesn't have a reset pin. http://forum.arduino.cc/index.php?topic=134899.0
I found in the library that I can reset the CC3000 with software, using
wlan_stop(); delay(1000); wlan_start(usPatchesAvailableAtHost);
I can't find what usPatchesAvailableAtHost should be. From the SparkFun library, it appears it should be 2 or less.