New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when no tag is on Explore NFC board #4
Comments
Hi Francois! Thanks for reaching out! This is expected behavior. In the latest revision of nxppy (which uses a Mifare class instead of static methods), we throw an exception if the call to .select() fails. Here's how you would handle it (using one of your example scripts):
I'll go and update my post on the NXP site, which I think still has the old example. Please let me know if you have any additional issues. I look forward to seeing your blog post when it's published! Scott |
Thank you Scott |
Hello Scott |
Thanks Francois! I've just tweeted your post. Excited to see it! Joyeux On Sun Dec 21 2014 at 10:08:26 AM Francois MOCQ notifications@github.com
|
Hello
I compiled nxppy successfully from source
I use a little loop test :
When I lounch the test with a NFC tag on the board I got :
When removing the NFC tag, I would like to print "No Card" but the script stops and send an error as here under :
When starting the script without a NFC tag I got directly
I made another try with this script read_nfc.py :
When launched with a NFC Tag it gives
But without NFC Tag on the board i have the same error...
I do not know why this append and if I make something wrong.
My goal is to write a post for the blog www.framboise314.fr. I would like to tell my readers how to use Explore NFC Board to open a door when a NFC Tag listed in a file is present.
But the script stops when no tag is near the board.
Hope you see where my mistake is
Best regards
François
www.framboise314.fr
The text was updated successfully, but these errors were encountered: