ESPHome  2024.4.0
automation.cpp
Go to the documentation of this file.
1 #include "automation.h"
2 
3 namespace esphome {
4 namespace nfc {
5 
6 void NfcOnTagTrigger::process(const std::unique_ptr<NfcTag> &tag) { this->trigger(format_uid(tag->get_uid()), *tag); }
7 
8 } // namespace nfc
9 } // namespace esphome
std::string format_uid(std::vector< uint8_t > &uid)
Definition: nfc.cpp:10
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
Definition: automation.h:95
void process(const std::unique_ptr< NfcTag > &tag)
Definition: automation.cpp:6
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7