LudovicRousseau / pyscard

pyscard smartcard library for python
http://pyscard.sourceforge.net/
GNU Lesser General Public License v2.1
379 stars 108 forks source link

add reconnect to high-level API #109

Closed ElouanPetereau closed 3 years ago

ElouanPetereau commented 3 years ago

I added the reconnect method to CardConnection() regarding the issue #107 that simply make a call to SCardReconnect().

The default mode is SCARD_SHARE_SHARED and the default disposition is SCARD_RESET_CARD if none as been given and if the connection object doesn't already have one.

I also added a "reconnect" event for the CardConnectionObserver.

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.2%) to 28.264% when pulling 458894b81df6e6954153b34c75f38b25090dc383 on ElouanPetereau:master into 6836b1433476fac5cdcb6f8a268956af7bbbc5ab on LudovicRousseau:master.

LudovicRousseau commented 3 years ago

Super. C'est dans https://github.com/LudovicRousseau/pyscard/commit/a4a030587e316427b1487eb08da2773e478d95fc