Skip to content

Commit

Permalink
tag read example must capture tag in variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nehpetsde committed Dec 11, 2016
1 parent 4e2fa1f commit 80f0799
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/topics/get-started.rst
Expand Up @@ -154,9 +154,8 @@ choose ``on-connect`` to be alerted when the tag is activated.
>>> def connected(tag): print(tag); return False
...
>>> clf = nfc.ContactlessFrontend('usb')
>>> clf.connect(rdwr={'on-connect': connected}) # now touch a tag
>>> tag = clf.connect(rdwr={'on-connect': connected}) # now touch a tag
Type3Tag IDm=01010501b00ac30b PMm=03014b024f4993ff SYS=12fc
<nfc.tag.tt3.Type3Tag object at 0x7f9e8302bfd0>

This simple callback function print some basic information about the
tag, here it is an NFC Forum Type 3 Tag with system code 12FCh. This
Expand Down

0 comments on commit 80f0799

Please sign in to comment.