Hey
The uid is a rfid tag code when i read the tag i get a nummber like this 150, 110, 1, 164 .
So what im trying to do is to scan the tag and then look up the nummber in the database.
Here is how i do it when im not using a db.
The uid is a rfid tag code when i read the tag i get a nummber like this 150, 110, 1, 164 .
So what im trying to do is to scan the tag and then look up the nummber in the database.
Here is how i do it when im not using a db.
# UID stuff if status == MIFAREReader.MI_OK: # Print UID print "Card read UID: {0},{1},{2},{3}".format(*uid) print (st) if uid[:4] == [150,110,1,164]: Print ("Hi there") time.sleep(2)