clf.connect() doesn't return tag in v 0.10.2

Asked by Anthony on 2016-01-06


Maybe I am missing something simple, I am using branch version 0.10.2 of nfcpy, via UART (tty:AMA0:pn532). I am trying to read the value of my tag, and from what I understand clf.connect(rdwr={}) should return a tag instance if the callback returns false. However, it does not seem to return a tag, it doesn't seem to return anything and if I try to print the tag value in the callback it tells me the tag.ndef is None.

Any ideas? Thanks for the help.

Question information

English Edit question
nfcpy Edit question
No assignee Edit question
Last query:
Last reply:

If the callback is hit then "tag" is an instance of the corresponding Tag Type class. Printing "print(tag)" tells about that instance type and some basic things like the tag identifier. The "tag.ndef" attribute may be None if the Tag is not NDEF compatible, or the formatting is wrong.

Can you help with this problem?

Provide an answer of your own, or ask Anthony for more information if necessary.

To post a message you must log in.