pokusew / nfc-pcsc

Easy reading and writing NFC tags and cards in Node.js
MIT License
535 stars 132 forks source link

Add CONNECT_MODE_EXCLUSIVE #124

Open icedevml opened 2 years ago

icedevml commented 2 years ago

In some use cases, it is required to open the card in "exclusive" mode, especially if some stateful operations are involved. If the card is not opened in the exclusive mode, multiple services may try to talk to it at once (for instance: Windows system itself). In some use cases, this disrupts proper operation.

Without the possibility to open the reader in exclusive mode, this library doesn't reliably work with: https://www.npmjs.com/package/node-gp