ESPHome 2025.12.0-dev
Loading...
Searching...
No Matches
baud_rate_select.cpp
Go to the documentation of this file.
1#include "baud_rate_select.h"
2
3namespace esphome {
4namespace ld2412 {
5
6void BaudRateSelect::control(size_t index) {
7 this->publish_state(index);
8 this->parent_->set_baud_rate(this->option_at(index));
9}
10
11} // namespace ld2412
12} // namespace esphome
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:87
void publish_state(const std::string &state)
Definition select.cpp:12
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7