Added error checking for polling

This commit is contained in:
EricLiu2000
2019-06-18 11:38:12 -04:00
parent 2b34c82382
commit 92368f70a5
5 changed files with 29 additions and 22 deletions
+4 -3
View File
@@ -42,9 +42,10 @@ public:
DeviceCurrentlyClosed = 0x1006,
DeviceCurrentlyOnline = 0x1007,
DeviceCurrentlyOffline = 0x1008,
DeviceNotPolling = 0x1009,
UnsupportedTXNetwork = 0x1010,
MessageMaxLengthExceeded = 0x1011,
DeviceCurrentlyPolling = 0x1009,
DeviceNotCurrentlyPolling = 0x1010,
UnsupportedTXNetwork = 0x1011,
MessageMaxLengthExceeded = 0x1012,
// Device Errors
PollingMessageOverflow = 0x2000,
+1 -1
View File
@@ -50,7 +50,7 @@ public:
virtual bool goOffline();
// Message polling related functions
void enableMessagePolling();
bool enableMessagePolling();
bool disableMessagePolling();
bool isMessagePollingEnabled() { return messagePollingCallbackID != 0; };
std::vector<std::shared_ptr<Message>> getMessages();