Read Tag Loop

Asked by Rafael

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:
Last query:
Last reply:
Revision history for this message
Best Stephen Tiedemann (stephen-tiedemann) said :
#1

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.

Revision history for this message
Rafael (hibara94) said :
#2

Thanks Stephen Tiedemann, that solved my question.