ESPHome
2024.11.2
esphome
esphome
components
ld2410
select
baud_rate_select.cpp
Go to the documentation of this file.
1
#include "
baud_rate_select.h
"
2
3
namespace
esphome
{
4
namespace
ld2410 {
5
6
void
BaudRateSelect::control
(
const
std::string &value) {
7
this->
publish_state
(value);
8
this->
parent_
->set_baud_rate(
state
);
9
}
10
11
}
// namespace ld2410
12
}
// namespace esphome
esphome::Parented< LD2410Component >::parent_
LD2410Component * parent_
Definition:
helpers.h:533
esphome::select::Select::state
std::string state
Definition:
select.h:33
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition:
select.cpp:9
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
baud_rate_select.h
esphome::ld2410::BaudRateSelect::control
void control(const std::string &value) override
Definition:
baud_rate_select.cpp:6
Generated by
1.8.13