nfc test main
This commit is contained in:
parent
60e769ba05
commit
0a9dd2931b
8
main.py
8
main.py
@ -46,6 +46,7 @@ from getpass import getpass
|
||||
import sys
|
||||
import ctypes
|
||||
from fido2.ctap2 import Ctap2
|
||||
import nfc
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
|
||||
@ -104,6 +105,13 @@ class CliInteraction(UserInteraction):
|
||||
print("User Verification required.")
|
||||
return True
|
||||
|
||||
try:
|
||||
clf = nfc.ContactlessFrontend('usb') # Ensure this matches your connection
|
||||
print("NFC reader initialized.")
|
||||
except Exception as e:
|
||||
print("Failed to initialize NFC reader:", e)
|
||||
|
||||
|
||||
|
||||
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user