ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
key_provider.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome {
7namespace key_provider {
8
11 public:
12 template<typename F> void add_on_key_callback(F &&callback) { this->key_callback_.add(std::forward<F>(callback)); }
13
14 protected:
15 void send_key_(uint8_t key);
16
18};
19
20} // namespace key_provider
21} // namespace esphome
interface for components that provide keypresses
void add_on_key_callback(F &&callback)
CallbackManager< void(uint8_t)> key_callback_
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7