{"action":"created","issue":{"url":"https://api.github.com/repos/nfcpy/nfcpy/issues/16","repository_url":"https://api.github.com/repos/nfcpy/nfcpy","labels_url":"https://api.github.com/repos/nfcpy/nfcpy/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/nfcpy/nfcpy/issues/16/comments","events_url":"https://api.github.com/repos/nfcpy/nfcpy/issues/16/events","html_url":"https://github.com/nfcpy/nfcpy/issues/16","id":151081434,"number":16,"title":"documentation LLCP example doesn't work","user":{"login":"nehpetsde","id":6604011,"avatar_url":"https://avatars.githubusercontent.com/u/6604011?v=3","gravatar_id":"","url":"https://api.github.com/users/nehpetsde","html_url":"https://github.com/nehpetsde","followers_url":"https://api.github.com/users/nehpetsde/followers","following_url":"https://api.github.com/users/nehpetsde/following{/other_user}","gists_url":"https://api.github.com/users/nehpetsde/gists{/gist_id}","starred_url":"https://api.github.com/users/nehpetsde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehpetsde/subscriptions","organizations_url":"https://api.github.com/users/nehpetsde/orgs","repos_url":"https://api.github.com/users/nehpetsde/repos","events_url":"https://api.github.com/users/nehpetsde/events{/privacy}","received_events_url":"https://api.github.com/users/nehpetsde/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nfcpy/nfcpy/labels/Fix%20Released","name":"Fix Released","color":"ddffdd"},{"url":"https://api.github.com/repos/nfcpy/nfcpy/labels/Medium","name":"Medium","color":"ffdddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-26T09:05:35Z","updated_at":"2016-04-26T09:09:09Z","closed_at":null,"body":"Hi Stephen\n\n\nThis probably is not an actual bug of the lib itself, but rather a docs problem, yet it heavily affects library usability. Or I'm just doing something wrong. Anyway, I've gone to incorporating NFC into my application, and found that LLCP example not really working. The very last piece of code from here http://nfcpy.readthedocs.org/en/latest/topics/get-started.html#work-with-a-peer says:\n\n    import nfc, nfc.snep, threading\n    clf = nfc.ContactlessFrontend('usb')\n    connected = lambda llc: threading.Thread(target=llc.run()).start()\n    llc = clf.connect(llcp={'on-connect': connected})\n    snep = nfc.snep.SnepClient(llc)\n    snep.put(nfc.ndef.Message(nfc.ndef.SmartPosterRecord(\"http://nfcpy.org\")))\n    clf.close()\n\nI've copied it as is into a separate helloworld.py file expecting it to work as is, but it doesn't. It starts NFC, and connection is recognized by the phone, but URL is not transferred. \n\nI've tried to look into beam.py for other sources of simple enough example to start with, yet that script seems to be much more complex to start with unfortunately.\n\nSo what's wrong with this script from the manual, or what I'm doing wrong?\n\n\nRegards\nAlex\n\nPS: the actual script on that manual page has a typo, a closing quote is missing on the second line around 'usb' string, and this typo is copypasted in few other places on the same manual page."},"comment":{"url":"https://api.github.com/repos/nfcpy/nfcpy/issues/comments/214677743","html_url":"https://github.com/nfcpy/nfcpy/issues/16#issuecomment-214677743","issue_url":"https://api.github.com/repos/nfcpy/nfcpy/issues/16","id":214677743,"user":{"login":"nehpetsde","id":6604011,"avatar_url":"https://avatars.githubusercontent.com/u/6604011?v=3","gravatar_id":"","url":"https://api.github.com/users/nehpetsde","html_url":"https://github.com/nehpetsde","followers_url":"https://api.github.com/users/nehpetsde/followers","following_url":"https://api.github.com/users/nehpetsde/following{/other_user}","gists_url":"https://api.github.com/users/nehpetsde/gists{/gist_id}","starred_url":"https://api.github.com/users/nehpetsde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehpetsde/subscriptions","organizations_url":"https://api.github.com/users/nehpetsde/orgs","repos_url":"https://api.github.com/users/nehpetsde/repos","events_url":"https://api.github.com/users/nehpetsde/events{/privacy}","received_events_url":"https://api.github.com/users/nehpetsde/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T09:09:09Z","updated_at":"2016-04-26T09:09:09Z","body":"(by stephen-tiedemann)\nThis is indeed to be considered as a bug, even if it just affects the documentation. Thanks a lot for reporting it."}}