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