{"action":"created","issue":{"url":"https://api.github.com/repos/spark/firmware/issues/804","repository_url":"https://api.github.com/repos/spark/firmware","labels_url":"https://api.github.com/repos/spark/firmware/issues/804/labels{/name}","comments_url":"https://api.github.com/repos/spark/firmware/issues/804/comments","events_url":"https://api.github.com/repos/spark/firmware/issues/804/events","html_url":"https://github.com/spark/firmware/issues/804","id":126032151,"number":804,"title":"Photon stuck indefinitely in breathing green LED mode following wifi reconnection","user":{"login":"karlhenricksen","id":12628878,"avatar_url":"https://avatars.githubusercontent.com/u/12628878?v=3","gravatar_id":"","url":"https://api.github.com/users/karlhenricksen","html_url":"https://github.com/karlhenricksen","followers_url":"https://api.github.com/users/karlhenricksen/followers","following_url":"https://api.github.com/users/karlhenricksen/following{/other_user}","gists_url":"https://api.github.com/users/karlhenricksen/gists{/gist_id}","starred_url":"https://api.github.com/users/karlhenricksen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlhenricksen/subscriptions","organizations_url":"https://api.github.com/users/karlhenricksen/orgs","repos_url":"https://api.github.com/users/karlhenricksen/repos","events_url":"https://api.github.com/users/karlhenricksen/events{/privacy}","received_events_url":"https://api.github.com/users/karlhenricksen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2016-01-11T20:42:19Z","updated_at":"2016-03-12T02:55:47Z","closed_at":null,"body":"### Description:\r\nI left my device running online running a simple script to repeatedly send commands over the weekend and saw what looked to be wifi flakiness the first night - 16 wifi disconnects with 15 successful reconnects. On the 16th disconnect however, the Photon failed to get back online - instead, it had become stuck in the mode of breathing green LED. When I returned 3 days later, it was still in this mode and I was forced to reset in order to recover. We have seen this in the past with Manual mode, but now using Semi-Automatic mode and multi-threading, we thought it would be non-existent.\r\n\r\nNOTE this is not 100% reproducible - it's only happened when running scripts to continually send simple updates and/or when our wifi is slow or possibly flaky/intermittent - I havent' been able to reproduce by pulling/restoring internet repeatedly as I'd hoped either with or without the messaging.\r\n\r\n### Steps to Reproduce:    \r\n1. Ensure Photon is connected to wifi and cloud with correct router credentials (breathing cyan)\r\n2. Run some script to repeatedly make simple changes\r\n3. Leave running overnight with periods of slow/flaky internet\r\n\r\n### Video:\r\nVideo below shows the described behavior, of the breathing green LED.\r\n\r\nhttps://www.youtube.com/watch?v=Csc-nLxfNyA\r\n\r\n### Photon Info:\r\nSystem version 0.4.7\r\nMulti-thread enabled\r\nSemi-Auto mode"},"comment":{"url":"https://api.github.com/repos/spark/firmware/issues/comments/195645758","html_url":"https://github.com/spark/firmware/issues/804#issuecomment-195645758","issue_url":"https://api.github.com/repos/spark/firmware/issues/804","id":195645758,"user":{"login":"m-mcgowan","id":2465470,"avatar_url":"https://avatars.githubusercontent.com/u/2465470?v=3","gravatar_id":"","url":"https://api.github.com/users/m-mcgowan","html_url":"https://github.com/m-mcgowan","followers_url":"https://api.github.com/users/m-mcgowan/followers","following_url":"https://api.github.com/users/m-mcgowan/following{/other_user}","gists_url":"https://api.github.com/users/m-mcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/m-mcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-mcgowan/subscriptions","organizations_url":"https://api.github.com/users/m-mcgowan/orgs","repos_url":"https://api.github.com/users/m-mcgowan/repos","events_url":"https://api.github.com/users/m-mcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/m-mcgowan/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T02:55:47Z","updated_at":"2016-03-12T02:55:47Z","body":"Many thanks for taking the time to troubleshoot this @karlhenricksen, @blackadmin.  It will take me a little while to get the necessary pieces to setup the same test fixture. \r\n\r\nI made a PR here  - https://github.com/spark/firmware/pull/898 - that attempts to disconnect the device when connection to wifi takes too long. Would you mind trying that with your current setup to see if it helps with the stall?\r\n"}}