ESPHome
2024.10.2
esphome
esphome
components
sml
sensor
sml_sensor.h
Go to the documentation of this file.
1
#pragma once
2
#include "
esphome/components/sml/sml.h
"
3
#include "
esphome/components/sensor/sensor.h
"
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
esphome::Component
Definition:
component.h:68
sml.h
esphome::sml::SmlListener
Definition:
sml.h:13
sensor.h
esphome::sml::SmlListener::server_id
std::string server_id
Definition:
sml.h:15
esphome::sml::SmlSensor::dump_config
void dump_config() override
Definition:
sml_sensor.cpp:32
esphome::sml::SmlSensor::publish_val
void publish_val(const ObisInfo &obis_info) override
Definition:
sml_sensor.cpp:13
esphome::sml::SmlSensor
Definition:
sml_sensor.h:8
esphome::sml::ObisInfo
Definition:
sml_parser.h:21
esphome::sml::SmlListener::obis_code
std::string obis_code
Definition:
sml.h:16
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
esphome::sml::SmlSensor::SmlSensor
SmlSensor(std::string server_id, std::string obis_code)
Definition:
sml_sensor.cpp:10
Generated by
1.8.13