ESPHome
2026.1.0-dev
Loading...
Searching...
No Matches
esphome
components
ld2412
select
baud_rate_select.cpp
Go to the documentation of this file.
1
#include "
baud_rate_select.h
"
2
3
namespace
esphome::ld2412
{
4
5
void
BaudRateSelect::control
(
size_t
index) {
6
this->
publish_state
(index);
7
this->
parent_
->set_baud_rate(this->
option_at
(index));
8
}
9
10
}
// namespace esphome::ld2412
esphome::Parented< LD2412Component >::parent_
LD2412Component * parent_
Definition
helpers.h:1113
esphome::ld2412::BaudRateSelect::control
void control(size_t index) override
Definition
baud_rate_select.cpp:5
esphome::select::Select::option_at
const char * option_at(size_t index) const
Return the option value at the provided index offset (as const char* from flash).
Definition
select.cpp:83
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition
select.cpp:11
baud_rate_select.h
esphome::ld2412
Definition
factory_reset_button.cpp:3
Generated by
1.12.0