{"action":"opened","issue":{"url":"https://api.github.com/repos/thegecko/bleat/issues/4","labels_url":"https://api.github.com/repos/thegecko/bleat/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/thegecko/bleat/issues/4/comments","events_url":"https://api.github.com/repos/thegecko/bleat/issues/4/events","html_url":"https://github.com/thegecko/bleat/issues/4","id":101368033,"number":4,"title":"Refactor peripheral discovery code","user":{"login":"thegecko","id":61341,"avatar_url":"https://avatars.githubusercontent.com/u/61341?v=3","gravatar_id":"","url":"https://api.github.com/users/thegecko","html_url":"https://github.com/thegecko","followers_url":"https://api.github.com/users/thegecko/followers","following_url":"https://api.github.com/users/thegecko/following{/other_user}","gists_url":"https://api.github.com/users/thegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/thegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thegecko/subscriptions","organizations_url":"https://api.github.com/users/thegecko/orgs","repos_url":"https://api.github.com/users/thegecko/repos","events_url":"https://api.github.com/users/thegecko/events{/privacy}","received_events_url":"https://api.github.com/users/thegecko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-17T08:27:10Z","updated_at":"2015-08-17T08:27:10Z","closed_at":null,"body":"All services, characteristics and descriptors are currently discovered after connect.\r\n\r\nIt would be better if this could be refactored into a ```discoverAll``` function which in turn is made up of ```discoverServices```, ```discoverCharacteristics``` and ```discoverDescriptors```.\r\n\r\nPerhaps the API should stay unbroken by the connect functionality still undertaking all discovery by default."}}