summaryrefslogtreecommitdiff
path: root/python/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/test.py')
-rw-r--r--python/test.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/test.py b/python/test.py
new file mode 100644
index 0000000..4180542
--- /dev/null
+++ b/python/test.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+import pyrfid
+
+res = openpcd.open()
+if res == 1:
+ print "No device found"
+else:
+ print "We found a device :)"
+ while 1:
+ res = openpcd.scan()
+ if res == 3:
+ print "The id of the card is %s" %(openpcd.get_id())
+openpcd.close()
personal git repositories of Harald Welte. Your mileage may vary