{"action":"created","issue":{"url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/209","labels_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/209/comments","events_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/209/events","html_url":"https://github.com/randdusing/cordova-plugin-bluetoothle/issues/209","id":117294305,"number":209,"title":"When device disconnects or gets out of range, the wrong callback is called","user":{"login":"elafargue","id":1177607,"avatar_url":"https://avatars.githubusercontent.com/u/1177607?v=3","gravatar_id":"","url":"https://api.github.com/users/elafargue","html_url":"https://github.com/elafargue","followers_url":"https://api.github.com/users/elafargue/followers","following_url":"https://api.github.com/users/elafargue/following{/other_user}","gists_url":"https://api.github.com/users/elafargue/gists{/gist_id}","starred_url":"https://api.github.com/users/elafargue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elafargue/subscriptions","organizations_url":"https://api.github.com/users/elafargue/orgs","repos_url":"https://api.github.com/users/elafargue/repos","events_url":"https://api.github.com/users/elafargue/events{/privacy}","received_events_url":"https://api.github.com/users/elafargue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/milestones/1","html_url":"https://github.com/randdusing/cordova-plugin-bluetoothle/milestones/v3","labels_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/milestones/1/labels","id":1539967,"number":1,"title":"v3","description":null,"creator":{"login":"randdusing","id":6188656,"avatar_url":"https://avatars.githubusercontent.com/u/6188656?v=3","gravatar_id":"","url":"https://api.github.com/users/randdusing","html_url":"https://github.com/randdusing","followers_url":"https://api.github.com/users/randdusing/followers","following_url":"https://api.github.com/users/randdusing/following{/other_user}","gists_url":"https://api.github.com/users/randdusing/gists{/gist_id}","starred_url":"https://api.github.com/users/randdusing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randdusing/subscriptions","organizations_url":"https://api.github.com/users/randdusing/orgs","repos_url":"https://api.github.com/users/randdusing/repos","events_url":"https://api.github.com/users/randdusing/events{/privacy}","received_events_url":"https://api.github.com/users/randdusing/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2016-01-24T22:45:23Z","updated_at":"2016-01-25T19:49:28Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-11-17T06:43:24Z","updated_at":"2016-01-25T19:49:28Z","closed_at":"2016-01-25T19:49:28Z","body":"When a device disconnects, rather that getting a \"disconnected\" status in the connectSuccess callback, I get a connection error (error: \"connect\", message: \"connection failed\") in the connectError callback: this is not what the documentation indicates, and makes device disconnects difficult to handle..."},"comment":{"url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/comments/174638023","html_url":"https://github.com/randdusing/cordova-plugin-bluetoothle/issues/209#issuecomment-174638023","issue_url":"https://api.github.com/repos/randdusing/cordova-plugin-bluetoothle/issues/209","id":174638023,"user":{"login":"randdusing","id":6188656,"avatar_url":"https://avatars.githubusercontent.com/u/6188656?v=3","gravatar_id":"","url":"https://api.github.com/users/randdusing","html_url":"https://github.com/randdusing","followers_url":"https://api.github.com/users/randdusing/followers","following_url":"https://api.github.com/users/randdusing/following{/other_user}","gists_url":"https://api.github.com/users/randdusing/gists{/gist_id}","starred_url":"https://api.github.com/users/randdusing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randdusing/subscriptions","organizations_url":"https://api.github.com/users/randdusing/orgs","repos_url":"https://api.github.com/users/randdusing/repos","events_url":"https://api.github.com/users/randdusing/events{/privacy}","received_events_url":"https://api.github.com/users/randdusing/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T19:49:28Z","updated_at":"2016-01-25T19:49:28Z","body":"I believe this should be fixed in v3 with some changes to the scan locking mechanism. Let me know if it still exists."}}