Skip to content

Instantly share code, notes, and snippets.

@DanielOaks
Created July 21, 2016 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielOaks/c2bd58e4afcd4d2867e7e50f7d9cba96 to your computer and use it in GitHub Desktop.
Save DanielOaks/c2bd58e4afcd4d2867e7e50f7d9cba96 to your computer and use it in GitHub Desktop.
Example tag thing
import nfc
nfc.ContactlessFrontend('usb')
print 'Reader opened:', clf
def connected(tag):
print 'TAG ID IS:', tag.identifier
var = clf.connect(rdwr={'on-connect': connected})
print(var)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment