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

Asked by Anthony

Hello,

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

Language:
English Edit question
Status:
Answered
For:
nfcpy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#1

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.