mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Added error checking for polling
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user