add device version & product getter functions

This commit is contained in:
proddy
2020-07-06 20:44:59 +02:00
parent 4d1ae1809c
commit b49871320b
3 changed files with 19 additions and 3 deletions

View File

@@ -82,6 +82,10 @@ class EMSdevice {
version_ = version;
}
inline std::string version() const {
return version_;
}
inline void brand(uint8_t brand) {
brand_ = brand;
}
@@ -94,6 +98,10 @@ class EMSdevice {
name_ = name;
}
inline std::string name() const {
return name_;
}
std::string brand_to_string() const;
static uint8_t decode_brand(uint8_t value);