Added icsneo_isOpen() functionality

This commit is contained in:
EricLiu2000
2019-06-13 16:01:35 -04:00
parent f1e0625429
commit 903615dadd
4 changed files with 39 additions and 3 deletions
+2
View File
@@ -44,6 +44,7 @@ public:
virtual bool open();
virtual bool close();
virtual bool isOnline() const { return online; }
virtual bool isOpen() const { return opened; }
virtual bool goOnline();
virtual bool goOffline();
@@ -83,6 +84,7 @@ public:
protected:
uint16_t productId = 0;
bool online = false;
bool opened = false;
int messagePollingCallbackID = 0;
int internalHandlerCallbackID = 0;
device_errorhandler_t err;