Explicit open() and close() on device.

This commit is contained in:
Ondrej Mikle 2014-07-19 14:56:15 +02:00
parent a4d676772e
commit bc9630c927
2 changed files with 39 additions and 10 deletions

View file

@ -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;
};