8 static const char *
const TAG =
"event";
12 ESP_LOGE(TAG,
"'%s': invalid event type for trigger(): %s", this->
get_name().c_str(), event_type.
c_str());
15 ESP_LOGD(TAG,
"'%s' Triggered event '%s'", this->
get_name().c_str(), event_type.
c_str());
void add_on_event_callback(std::function< void(const std::string &event_type)> &&callback)
void trigger(const std::string &event_type)
constexpr const char * c_str() const
Implementation of SPI Controller mode.
std::set< std::string > types_
CallbackManager< void(const std::string &event_type)> event_callback_
const StringRef & get_name() const