Read Tag Loop

Asked by Rafael on 2016-09-27

Hi, I'm new to Python and I'm making an interface with pyqt, and I have a doubt, I think an infinite loop when reading multiple tags, as I do to stop this process by pressing a button?

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
nfcpy Edit question
Assignee:
No assignee Edit question
Solved by:
Stephen Tiedemann
Solved:
2016-10-06
Last query:
2016-10-06
Last reply:
2016-09-28

Use the terminate callback function described here
https://nfcpy.readthedocs.io/en/latest/modules/clf.html#nfc.clf.ContactlessFrontend.connect
to return True when the button was pressed.

Rafael (hibara94) said : #2

Thanks Stephen Tiedemann, that solved my question.