Python 2.7 Error
Asked by
ian@iwjohnston.com
Referring to section 2.3 of the nfcpy documentation, (Read and Write Tags), Using the example shown, I keep getting the error as shown below. Not sure if it is my knowledge of Python of some other issue:
>>> import nfc
>>> def connected(tag): print(tag); return False
...
>>> clf = nfc.Contactless
>>> clf.connect(
Type3Tag 'FeliCa Lite-S (RC-S966)' ID=012E34E829CE1E71 PMM=00F10000000
<nfc.tag.
>>> print(tag.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'tag' is not defined
>>>
Regards,
Ian
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stephen Tiedemann
- Solved:
- Last query:
- Last reply:
To post a message you must log in.