ESPHome  2024.11.1
sml_sensor.h
Go to the documentation of this file.
1 #pragma once
4 
5 namespace esphome {
6 namespace sml {
7 
8 class SmlSensor : public SmlListener, public sensor::Sensor, public Component {
9  public:
10  SmlSensor(std::string server_id, std::string obis_code);
11  void publish_val(const ObisInfo &obis_info) override;
12  void dump_config() override;
13 };
14 
15 } // namespace sml
16 } // namespace esphome
std::string server_id
Definition: sml.h:15
void dump_config() override
Definition: sml_sensor.cpp:32
void publish_val(const ObisInfo &obis_info) override
Definition: sml_sensor.cpp:13
std::string obis_code
Definition: sml.h:16
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
Base-class for all sensors.
Definition: sensor.h:57
SmlSensor(std::string server_id, std::string obis_code)
Definition: sml_sensor.cpp:10