{"action":"closed","issue":{"url":"https://api.github.com/repos/Arn-O/py-android-accessory/issues/2","repository_url":"https://api.github.com/repos/Arn-O/py-android-accessory","labels_url":"https://api.github.com/repos/Arn-O/py-android-accessory/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Arn-O/py-android-accessory/issues/2/comments","events_url":"https://api.github.com/repos/Arn-O/py-android-accessory/issues/2/events","html_url":"https://github.com/Arn-O/py-android-accessory/issues/2","id":125925304,"number":2,"title":"Loop for waiting for the Android device","user":{"login":"Arn-O","id":3259119,"avatar_url":"https://avatars.githubusercontent.com/u/3259119?v=3","gravatar_id":"","url":"https://api.github.com/users/Arn-O","html_url":"https://github.com/Arn-O","followers_url":"https://api.github.com/users/Arn-O/followers","following_url":"https://api.github.com/users/Arn-O/following{/other_user}","gists_url":"https://api.github.com/users/Arn-O/gists{/gist_id}","starred_url":"https://api.github.com/users/Arn-O/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arn-O/subscriptions","organizations_url":"https://api.github.com/users/Arn-O/orgs","repos_url":"https://api.github.com/users/Arn-O/repos","events_url":"https://api.github.com/users/Arn-O/events{/privacy}","received_events_url":"https://api.github.com/users/Arn-O/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Arn-O/py-android-accessory/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-11T11:40:52Z","updated_at":"2016-03-15T23:15:19Z","closed_at":"2016-03-15T23:15:19Z","body":"The script has to be launched when the Android handset is plugged. This is not exactly the way an accessory should behave.\r\n\r\nThe accessory should be waiting for the connection of the Android device. This is done with a loop, for which a test of the connected devices is done at each iteration."}}