This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am syaro on github. | |
* I am syaro (https://keybase.io/syaro) on keybase. | |
* I have a public key ASBsfxQ5TFtZ0jbgaF2BHYql3nv4Ntpx2oIqnlXnBbEc0wo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nfc | |
import time | |
servcode = 0x110B | |
def connected(tag): | |
service_code = [nfc.tag.tt3.ServiceCode(servcode >> 6, servcode & 0x3f)] | |
students_id = [nfc.tag.tt3.BlockCode(i) for i in range(1, 2)] | |
print tag.read_without_encryption(service_code, students_id) | |
time.sleep(3) | |
clf.connect(rdwr={'on-connect': connected}) |