You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Traceback (most recent call last):
File "Read.py", line 51, in
(status, TagType) = MIFAREReader.MFRC522_Request(MIFAREReader.PICC_REQIDL)
File "/home/pi/MFRC522.py", line 243, in MFRC522_Request
(status, backData, backBits) = self.MFRC522_ToCard(self.PCD_TRANSCEIVE, TagType)
TypeError: 'NoneType' object is not iterable
Could anyone please help in this matter? I am finding it troublesome and so would be glad if someone could sort this issue.
Thanks and Regards
The text was updated successfully, but these errors were encountered:
then go back a directory, create a new one, and in there, create a file, for example Read.py, and in it, paste this code:
`from time import sleep
import sys
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()
try:
while True:
print("Hold a card or tag near the reader")
id, text = reader.read()
print("ID: %s\nText: %s" % (id, text))
sleep(3)
except KeyboardInterrupt:
GPIO.cleanup()
raise`
This should work.
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Traceback (most recent call last):
File "Read.py", line 51, in
(status, TagType) = MIFAREReader.MFRC522_Request(MIFAREReader.PICC_REQIDL)
File "/home/pi/MFRC522.py", line 243, in MFRC522_Request
(status, backData, backBits) = self.MFRC522_ToCard(self.PCD_TRANSCEIVE, TagType)
TypeError: 'NoneType' object is not iterable
Could anyone please help in this matter? I am finding it troublesome and so would be glad if someone could sort this issue.
Thanks and Regards
The text was updated successfully, but these errors were encountered: