mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Device describe
This commit is contained in:
@@ -67,6 +67,12 @@ bool Device::SerialStringIsNumeric(const std::string& serial) {
|
||||
return isdigit(serial[0]) && isdigit(serial[1]);
|
||||
}
|
||||
|
||||
std::string Device::describe() const {
|
||||
std::stringstream ss;
|
||||
ss << getType() << ' ' << getSerial();
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
void Device::enableMessagePolling() {
|
||||
if(messagePollingCallbackID != 0) // We are already polling
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user