我有下面的python代码,每次在扫描仪上触摸rfid卡时都使用nfcpy打印序列号
它工作得很好,但我不确定如何读取其他信息,特别是我放在卡上的自定义文本数据
有人知道如何使用下面的代码读取文本数据吗
from nfc import ContactlessFrontend
import time
def connected(tag):
ident = ''.join('{:02x}'.format(ord(c)) for c in tag.identifier)
print(ident)
return False
clf = ContactlessFrontend('usb')
while True:
clf.connect(rdwr={'on-connect': connected})
time.sleep(1)
因此,NFC工具将Ndef数据写入NFC标记
从https://nfcpy.readthedocs.io/en/latest/topics/get-started.html
等等
相关问题 更多 >
编程相关推荐