{"action":"created","issue":{"url":"https://api.github.com/repos/earlephilhower/ESP8266Audio/issues/88","repository_url":"https://api.github.com/repos/earlephilhower/ESP8266Audio","labels_url":"https://api.github.com/repos/earlephilhower/ESP8266Audio/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/earlephilhower/ESP8266Audio/issues/88/comments","events_url":"https://api.github.com/repos/earlephilhower/ESP8266Audio/issues/88/events","html_url":"https://github.com/earlephilhower/ESP8266Audio/issues/88","id":318660783,"node_id":"MDU6SXNzdWUzMTg2NjA3ODM=","number":88,"title":"Automatic reconnect to audio stream -- a simple solution","user":{"login":"msmcmickey","id":12212679,"node_id":"MDQ6VXNlcjEyMjEyNjc5","avatar_url":"https://avatars2.githubusercontent.com/u/12212679?v=4","gravatar_id":"","url":"https://api.github.com/users/msmcmickey","html_url":"https://github.com/msmcmickey","followers_url":"https://api.github.com/users/msmcmickey/followers","following_url":"https://api.github.com/users/msmcmickey/following{/other_user}","gists_url":"https://api.github.com/users/msmcmickey/gists{/gist_id}","starred_url":"https://api.github.com/users/msmcmickey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msmcmickey/subscriptions","organizations_url":"https://api.github.com/users/msmcmickey/orgs","repos_url":"https://api.github.com/users/msmcmickey/repos","events_url":"https://api.github.com/users/msmcmickey/events{/privacy}","received_events_url":"https://api.github.com/users/msmcmickey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-28T19:01:40Z","updated_at":"2018-07-22T19:51:53Z","closed_at":null,"author_association":"NONE","body":"Not a bug, but something that might help someone else. I'm using this code to continually play a stream to feed a low power AM transmitter. If the connection to the streaming server is lost or it goes down, the code as is will stop and display \"MP3 done.\" The 8266 must be reset in order to begin streaming again. \r\n\r\nA very simple way to force a reconnect is to simply add a call to the setup() function. This works quite nicely and I've been testing it on the bench for over a day now with no problems. See attached screenshot.\r\n![streamlooping](https://user-images.githubusercontent.com/12212679/39399949-040f4992-4af5-11e8-8436-f318111bcb65.png)\r\n"},"comment":{"url":"https://api.github.com/repos/earlephilhower/ESP8266Audio/issues/comments/406891996","html_url":"https://github.com/earlephilhower/ESP8266Audio/issues/88#issuecomment-406891996","issue_url":"https://api.github.com/repos/earlephilhower/ESP8266Audio/issues/88","id":406891996,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjg5MTk5Ng==","user":{"login":"jgrulich","id":11583797,"node_id":"MDQ6VXNlcjExNTgzNzk3","avatar_url":"https://avatars2.githubusercontent.com/u/11583797?v=4","gravatar_id":"","url":"https://api.github.com/users/jgrulich","html_url":"https://github.com/jgrulich","followers_url":"https://api.github.com/users/jgrulich/followers","following_url":"https://api.github.com/users/jgrulich/following{/other_user}","gists_url":"https://api.github.com/users/jgrulich/gists{/gist_id}","starred_url":"https://api.github.com/users/jgrulich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgrulich/subscriptions","organizations_url":"https://api.github.com/users/jgrulich/orgs","repos_url":"https://api.github.com/users/jgrulich/repos","events_url":"https://api.github.com/users/jgrulich/events{/privacy}","received_events_url":"https://api.github.com/users/jgrulich/received_events","type":"User","site_admin":false},"created_at":"2018-07-22T19:51:53Z","updated_at":"2018-07-22T19:51:53Z","author_association":"NONE","body":"I've tested this and found that there are some residual ram not cleared blocks and after many restarts the ram overflows and sometimes it hangs at wdt reset.\r\nI've tested this and it works already for many weeks:\r\n`\r\n    if (!mp3->loop()) mp3->stop();\r\n  } else {\r\n    Serial.printf(\"Connection lost, ESP Restarting\\n\");\r\n    Serial.flush();\r\n    ESP.restart();\r\n`"}}
{"actor":{"display_login":"jgrulich"}}