{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/Adafruit_CC3000_Library/issues/148","labels_url":"https://api.github.com/repos/adafruit/Adafruit_CC3000_Library/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_CC3000_Library/issues/148/comments","events_url":"https://api.github.com/repos/adafruit/Adafruit_CC3000_Library/issues/148/events","html_url":"https://github.com/adafruit/Adafruit_CC3000_Library/issues/148","id":106775422,"number":148,"title":"intermittant hangs in read loop","user":{"login":"dzzie","id":576721,"avatar_url":"https://avatars.githubusercontent.com/u/576721?v=3","gravatar_id":"","url":"https://api.github.com/users/dzzie","html_url":"https://github.com/dzzie","followers_url":"https://api.github.com/users/dzzie/followers","following_url":"https://api.github.com/users/dzzie/following{/other_user}","gists_url":"https://api.github.com/users/dzzie/gists{/gist_id}","starred_url":"https://api.github.com/users/dzzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzzie/subscriptions","organizations_url":"https://api.github.com/users/dzzie/orgs","repos_url":"https://api.github.com/users/dzzie/repos","events_url":"https://api.github.com/users/dzzie/events{/privacy}","received_events_url":"https://api.github.com/users/dzzie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-16T13:36:50Z","updated_at":"2015-09-18T11:23:42Z","closed_at":null,"body":"I have a project that runs 24x7 and uploads stats every 30 minutes. a couple times a week I find the system hung with the display showing its stuck in the read loop. \r\n\r\nI have implemented a internal watchdog and the hang is severe enough to even lock that up so no reset is occurring. Has anyone else encountered similar behavior? \r\n\r\nexternal watchdog comes next I guess.\r\n\r\nref: \r\nhttps://github.com/dzzie/humidor.net/blob/master/Arduino/humidor/humidor.ino#L424\r\n\r\nsimplified:\r\n```C\r\n  startTime = millis(); //unsigned long\r\n #define IDLE_TIMEOUT_MS 7000 \r\n\r\n  while (www.connected()) {\r\n    \r\n    if( (millis() - startTime) > IDLE_TIMEOUT_MS ) break;\r\n\r\n    while (www.available()) {\r\n\r\n        if( (millis() - startTime) > IDLE_TIMEOUT_MS ) break;\r\n\t\t\r\n        char c = www.read();\r\n        ...\r\n\r\n\t}\r\n  }\r\n\r\n  wdt_reset();\r\n```"},"comment":{"url":"https://api.github.com/repos/adafruit/Adafruit_CC3000_Library/issues/comments/141422529","html_url":"https://github.com/adafruit/Adafruit_CC3000_Library/issues/148#issuecomment-141422529","issue_url":"https://api.github.com/repos/adafruit/Adafruit_CC3000_Library/issues/148","id":141422529,"user":{"login":"dzzie","id":576721,"avatar_url":"https://avatars.githubusercontent.com/u/576721?v=3","gravatar_id":"","url":"https://api.github.com/users/dzzie","html_url":"https://github.com/dzzie","followers_url":"https://api.github.com/users/dzzie/followers","following_url":"https://api.github.com/users/dzzie/following{/other_user}","gists_url":"https://api.github.com/users/dzzie/gists{/gist_id}","starred_url":"https://api.github.com/users/dzzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzzie/subscriptions","organizations_url":"https://api.github.com/users/dzzie/orgs","repos_url":"https://api.github.com/users/dzzie/repos","events_url":"https://api.github.com/users/dzzie/events{/privacy}","received_events_url":"https://api.github.com/users/dzzie/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T11:23:42Z","updated_at":"2015-09-18T11:23:42Z","body":"including an external watchdog right on the wifi board is a great design. covers allot of bases for just a few extra cents. \r\n\r\nGiven that network and wifi stuff can be problematic and the complexity of all of the code going on behind the scenes the simplicity of the \"fix\" and the peace of mind it gives for stability I would say it is an elegant inclusion. \r\n\r\nI think it would be great to have one built into the adafruit board as well.\r\n\r\nthe only premade external watchdog i was able to find is the [http://www.amazon.com/SwitchDoc-Labs-WatchDog-Arduino-Raspberry/dp/B00OL1N7R2/ref=sr_1_2?ie=UTF8&qid=1442575011&sr=8-2&keywords=dual+watchdog](Switchdoc labs watchdog) which has a gigantic footprint and is pretty pricey ($16). "}}