How to use pyGlobalPlatform to list smartcard readers
Posted: Wed Nov 25, 2015 8:24 am
The following demo code shows how to use pyGlobalPlatform to list smartcard readers.
Code: Select all
# Import the module
import globalplatform as gp
# Establish context
context = gp.establishContext()
# List readers
readernames = gp.listReaders(context)
# print all the reader names
for readername in readernames:
print readername
# Release context
gp.releaseContext(context)