if (part.length() > 0)
s << part;
+ if (serial_number().length() > 0)
+ s << serial_number();
+ else
+ s << connection_id();
+
return s.str();
}
return valid_string(_structure->version);
}
+string Device::serial_number()
+{
+ return valid_string(_structure->serial_num);
+}
+
+string Device::connection_id()
+{
+ return valid_string(_structure->connection_id);
+}
+
vector<shared_ptr<Channel>> Device::channels()
{
vector<shared_ptr<Channel>> result;