How to loop thru messages and records
Asked by
Juan Trujillo
I'm assuming that I can have multiple NDEF messages stored in a tag. I'm also assuming that I can have multiple NDEF records stored in one NDEF message...
My questions is how do I can I loop thru the messages on a tag? And how do I loop thru the records in a message?
Based on the following test code, tag.ndef.message object should have everything I need...
def connected(tag):
print tag
if tag.ndef:
print tag.ndef.
else:
"Sorry, no NDEF"
clf = nfc.Contactless
print(clf)
clf.connect(
Thanks!
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.