mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-20 12:28:33 +03:00
transport: Change transport api to allow for wait_for_card/connect/disconnect
This way, we can re-use the same transport parameters for several cards for a future batch mode Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
@@ -302,6 +302,9 @@ if __name__ == '__main__':
|
||||
sl = PcscSimLink(opts.pcsc_dev)
|
||||
scc = SimCardCommands(transport=sl)
|
||||
|
||||
print "Insert Card now"
|
||||
sl.wait_for_card()
|
||||
|
||||
# Detect type if needed
|
||||
card = None
|
||||
ctypes = dict([(kls.name, kls) for kls in _cards_classes])
|
||||
|
||||
Reference in New Issue
Block a user