mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
add device version & product getter functions
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user