ESPHome  2022.6.3
teleinfo_sensor.h
Go to the documentation of this file.
1 #pragma once
4 
5 namespace esphome {
6 namespace teleinfo {
7 
8 class TeleInfoSensor : public TeleInfoListener, public sensor::Sensor, public Component {
9  public:
10  TeleInfoSensor(const char *tag);
11  void publish_val(const std::string &val) override;
12  void dump_config() override;
13 };
14 
15 } // namespace teleinfo
16 } // namespace esphome
void publish_val(const std::string &val) override
Definition: a4988.cpp:4
uint32_t val
Definition: datatypes.h:85
Base-class for all sensors.
Definition: sensor.h:47