ESPHome 2025.5.0
Loading...
Searching...
No Matches
key_provider.cpp
Go to the documentation of this file.
1#include "key_provider.h"
2
3namespace esphome {
4namespace key_provider {
5
6void KeyProvider::add_on_key_callback(std::function<void(uint8_t)> &&callback) {
7 this->key_callback_.add(std::move(callback));
8}
9
10void KeyProvider::send_key_(uint8_t key) { this->key_callback_.call(key); }
11
12} // namespace key_provider
13} // namespace esphome
void add_on_key_callback(std::function< void(uint8_t)> &&callback)
CallbackManager< void(uint8_t)> key_callback_
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7