nfc test main

This commit is contained in:
EggMan20339 2024-05-09 21:21:11 -04:00
parent 60e769ba05
commit 0a9dd2931b

View File

@ -46,6 +46,7 @@ from getpass import getpass
import sys import sys
import ctypes import ctypes
from fido2.ctap2 import Ctap2 from fido2.ctap2 import Ctap2
import nfc
config = configparser.ConfigParser() config = configparser.ConfigParser()
@ -104,6 +105,13 @@ class CliInteraction(UserInteraction):
print("User Verification required.") print("User Verification required.")
return True 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: while True: