ESPHome 2025.6.3
Loading...
Searching...
No Matches
demo_text.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace demo {
8
9class DemoText : public text::Text, public Component {
10 public:
11 void setup() override { this->publish_state("I am a text entity"); }
12
13 protected:
14 void control(const std::string &value) override { this->publish_state(value); }
15};
16
17} // namespace demo
18} // namespace esphome
void setup() override
Definition demo_text.h:11
void control(const std::string &value) override
Definition demo_text.h:14
Base-class for all text inputs.
Definition text.h:24
void publish_state(const std::string &state)
Definition text.cpp:9
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7