Occasional write fail
Stephen,
The following code snippet works well generally. However once in a while it fails with the error thrown as shown in the second section below. A timing issue?
Code (part)
# This the tag reader scan loop.
while True:
# Scan the tag reader
with nfc.Contactless
def connected(tag): return False
tag = clf.connect(
if tag.ndef:
if tagcheck == 'XXX':
if tagcheck == 'OUT':
# Write the tag
tag = clf.connect(
# Now save the new tag data to file
# print (file_time + ' ' + file_name + ' ' + file_mob + ' ' + file_status+'\n')
# Light the correct LED
if tagstatus == ' IN':
Error thrown:
Enter your Selection [1-5]: 4
Now in Attendance Mode
USE THE ADMIN TAG TO STOP THE ATTENDANCE MODE
Traceback (most recent call last):
File "./tagapp3.py", line 162, in <module>
tag.
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
super(
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
raise Type3TagCommand
nfc.tag.
pi@raspberrypi:~ $
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask ian@iwjohnston.com for more information if necessary.