add sensorname console command

This commit is contained in:
MichaelDvP
2021-07-16 10:33:12 +02:00
parent 1f793c49ae
commit 0f48d3e72c
13 changed files with 177 additions and 28 deletions

View File

@@ -46,6 +46,7 @@ class DallasSensor {
~Sensor() = default;
uint64_t id() const;
std::string id_string() const;
std::string to_string() const;
int16_t temperature_c = EMS_VALUE_SHORT_NOTSET;
@@ -86,6 +87,8 @@ class DallasSensor {
dallas_format_ = dallas_format;
}
void add_name(const char * id, const char * name, int16_t offset);
private:
static constexpr uint8_t MAX_SENSORS = 20;