8static const char *
const TAG =
"event";
11 auto found =
types_.find(event_type);
12 if (found ==
types_.end()) {
13 ESP_LOGE(TAG,
"'%s': invalid event type for trigger(): %s", this->
get_name().c_str(), event_type.c_str());
const StringRef & get_name() const
const std::string * last_event_type
std::set< std::string > types_
void trigger(const std::string &event_type)
void add_on_event_callback(std::function< void(const std::string &event_type)> &&callback)
CallbackManager< void(const std::string &event_type)> event_callback_
Providing packet encoding functions for exchanging data with a remote host.