ESPHome
2024.12.2
esphome
esphome
components
nfc
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
esphome::nfc::format_uid
std::string format_uid(std::vector< uint8_t > &uid)
Definition:
nfc.cpp:10
esphome::Trigger< std::string, NfcTag >::trigger
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
Definition:
automation.h:95
esphome::nfc::NfcOnTagTrigger::process
void process(const std::unique_ptr< NfcTag > &tag)
Definition:
automation.cpp:6
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
Generated by
1.8.13