mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 08:34:00 +02:00
Make the UID read into infinite cycle
This commit is contained in:
parent
8869d25261
commit
23ae9ac77c
1 changed files with 9 additions and 8 deletions
|
@ -27,6 +27,7 @@ class NfcThread(threading.Thread):
|
||||||
stores it into uidQueue for later authentication check.
|
stores it into uidQueue for later authentication check.
|
||||||
"""
|
"""
|
||||||
self.nfc = NFCDevice()
|
self.nfc = NFCDevice()
|
||||||
|
while True:
|
||||||
try:
|
try:
|
||||||
uid_hex = hexlify(self.nfc.scanUID())
|
uid_hex = hexlify(self.nfc.scanUID())
|
||||||
print uid_hex
|
print uid_hex
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue