mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-07 16:14:01 +02:00
Change method for scanning for card from poll, which is OK for USB-connected PN532, but causes 100% CPU usage with SPI-connected PN532
This commit is contained in:
parent
9b89a230c9
commit
91c0d72de6
3 changed files with 16 additions and 15 deletions
|
@ -99,11 +99,13 @@ public:
|
|||
virtual ~NFCDevice();
|
||||
|
||||
/**
|
||||
* Poll until a ISO14443A card is in the field and returns its UID.
|
||||
* Read UID of a card in field. If multiple cards are found, return UID of first one.
|
||||
*
|
||||
* If you are polling for cards with this, include some sleep in-between the calls (e.g. 0.1 sec).
|
||||
*
|
||||
* @returns binary string containing UID or empty if non-supported card
|
||||
* present in reader field
|
||||
* @throws NFCError if polling failed
|
||||
* @throws NFCError if no cards in reader's field
|
||||
*/
|
||||
std::string scanUID() throw(NFCError);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue