{"action":"created","issue":{"url":"https://api.github.com/repos/IanHarvey/bluepy/issues/88","labels_url":"https://api.github.com/repos/IanHarvey/bluepy/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/IanHarvey/bluepy/issues/88/comments","events_url":"https://api.github.com/repos/IanHarvey/bluepy/issues/88/events","html_url":"https://github.com/IanHarvey/bluepy/issues/88","id":120261091,"number":88,"title":"Documentation Update","user":{"login":"pcborenstein","id":5528384,"avatar_url":"https://avatars.githubusercontent.com/u/5528384?v=3","gravatar_id":"","url":"https://api.github.com/users/pcborenstein","html_url":"https://github.com/pcborenstein","followers_url":"https://api.github.com/users/pcborenstein/followers","following_url":"https://api.github.com/users/pcborenstein/following{/other_user}","gists_url":"https://api.github.com/users/pcborenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/pcborenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcborenstein/subscriptions","organizations_url":"https://api.github.com/users/pcborenstein/orgs","repos_url":"https://api.github.com/users/pcborenstein/repos","events_url":"https://api.github.com/users/pcborenstein/events{/privacy}","received_events_url":"https://api.github.com/users/pcborenstein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T20:21:12Z","updated_at":"2015-12-03T20:51:37Z","closed_at":"2015-12-03T20:51:37Z","body":"Would you mind updating the documentation? I've been reading http://ianharvey.github.io/bluepy-doc/peripheral.html. The connect() instance requires 2 arguments, not one as stated in the documentation. The getServices() returns a dictionary, not a list as stated in the documentation. I assume there are more.\r\n\r\nHow have people been using this package? Is everyone browsing the source code and figuring it out for themselves? Am I looking at the wrong doc?"},"comment":{"url":"https://api.github.com/repos/IanHarvey/bluepy/issues/comments/161780987","html_url":"https://github.com/IanHarvey/bluepy/issues/88#issuecomment-161780987","issue_url":"https://api.github.com/repos/IanHarvey/bluepy/issues/88","id":161780987,"user":{"login":"IanHarvey","id":2851928,"avatar_url":"https://avatars.githubusercontent.com/u/2851928?v=3","gravatar_id":"","url":"https://api.github.com/users/IanHarvey","html_url":"https://github.com/IanHarvey","followers_url":"https://api.github.com/users/IanHarvey/followers","following_url":"https://api.github.com/users/IanHarvey/following{/other_user}","gists_url":"https://api.github.com/users/IanHarvey/gists{/gist_id}","starred_url":"https://api.github.com/users/IanHarvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanHarvey/subscriptions","organizations_url":"https://api.github.com/users/IanHarvey/orgs","repos_url":"https://api.github.com/users/IanHarvey/repos","events_url":"https://api.github.com/users/IanHarvey/events{/privacy}","received_events_url":"https://api.github.com/users/IanHarvey/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T20:51:37Z","updated_at":"2015-12-03T20:51:37Z","body":"Steady on there!  So, the docs haven't been updated since the v/0.9.0 release, and a lot has moved on since then. A lot of people using bluepy are either reading the source, or starting with the example code (sensortag.py) and hacking from there.\r\n\r\nTo answer your specific questions:\r\n1) Yes, _connect()_ documentation doesn't now match the code. Typically, people aren't calling _connect()_ directly, they're passing a MAC address into the _Peripheral_ constructor, which works as advertised.\r\n2)  _getService()_ should work as described. The code reads:\r\n\r\n    def getServices(self):\r\n        if not self.discoveredAllServices:\r\n            self.discoverServices()\r\n        return self.services.values()\r\n\r\nThis is a proper list on Python 2.x, and a view on 3.x. It's not a dictionary. You should, at least, be able to iterate over it (see the `__main__` section in `btle.py`.\r\n\r\n \r\n\r\n\r\n"}}