Hey guys, I am using the PN532 rfid reader and its corresponding adafruit library. What I want to do is to check the rfid reader for a card, read it if there is one and move on if there isnt. However, the examples all use this line of code to check the scanner:
success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength);
And it seems this just waits untill theres an rfid card and does nothing else. I wanted to try using a try/catch block, but it seems those are disable in the arduino IDE.
Any tips on how I could accomplish this?