ESPHome 2025.12.3
Loading...
Searching...
No Matches
baud_rate_select.cpp
Go to the documentation of this file.
1#include "baud_rate_select.h"
2
3namespace esphome::ld2410 {
4
5void 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::ld2410
void control(size_t index) override
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:84
void publish_state(const std::string &state)
Definition select.cpp:11