mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 16:36:25 +02:00
Explicit open() and close() on device.
This commit is contained in:
parent
a4d676772e
commit
bc9630c927
2 changed files with 39 additions and 10 deletions
|
@ -18,6 +18,12 @@ public:
|
|||
|
||||
std::string scanUID();
|
||||
|
||||
void open();
|
||||
|
||||
bool opened() const {return _opened;}
|
||||
|
||||
void close();
|
||||
|
||||
uint8_t pollNr;
|
||||
|
||||
uint8_t pollPeriod;
|
||||
|
@ -32,6 +38,8 @@ protected:
|
|||
|
||||
nfc_device *_nfcDevice;
|
||||
|
||||
bool _opened;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue