Renamed runme.py to test_nfc.py

This commit is contained in:
Ondrej Mikle 2014-07-19 21:23:01 +02:00
parent cabe1caa87
commit 85d15cd887

14
test_nfc.py Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env python
from brmdoor_nfc import NFCDevice, NFCError
from binascii import hexlify
try:
nfc = NFCDevice()
print hexlify(nfc.scanUID())
print "Device is opened:", nfc.opened()
print "Closing device"
nfc.close()
print "Device is opened:", nfc.opened()
nfc.unload()
except NFCError, e:
print "Reading UID failed:", e.what()