mirror of
https://github.com/nikdoof/pytikitag.git
synced 2025-12-17 11:49:26 +00:00
Added support for reading serial numbers and manf IDs of MiFare UL tags
This commit is contained in:
12
test.py
12
test.py
@@ -14,11 +14,15 @@ print r.firmware_version()
|
||||
m = tikitag.TikiTag(r)
|
||||
|
||||
print m.get_uid()
|
||||
print m.get_tag_url()
|
||||
|
||||
#d = m.read_tag()
|
||||
#d = m.read_block(0x6)
|
||||
#print "%s bytes" % len(d)
|
||||
#print toHexString(d)
|
||||
#print toASCIIString(d)
|
||||
|
||||
print m.write_block(0xf, [0xde, 0xad, 0xbe, 0xee])
|
||||
#print m.write_block(0xf, [0xde, 0xad, 0xbe, 0xee])
|
||||
|
||||
print toHexString(m.read_block(0xf))
|
||||
#print toHexString(m.read_block(0xf))
|
||||
|
||||
print m.get_manf_ascii()
|
||||
print m.get_serial()
|
||||
|
||||
Reference in New Issue
Block a user