ESPHome
2026.5.0
Loading...
Searching...
No Matches
esphome
components
nfc
automation.cpp
Go to the documentation of this file.
1
#include "
automation.h
"
2
#include "
nfc.h
"
3
4
namespace
esphome::nfc
{
5
6
void
NfcOnTagTrigger::process
(
const
std::unique_ptr<NfcTag> &
tag
) {
7
char
uid_buf[FORMAT_UID_BUFFER_SIZE];
8
this->
trigger
(std::string(
format_uid_to
(uid_buf,
tag
->get_uid())), *
tag
);
9
}
10
11
}
// namespace esphome::nfc
esphome::Trigger< std::string, NfcTag >::trigger
void trigger(const Ts &...x) ESPHOME_ALWAYS_INLINE
Definition
automation.h:482
esphome::nfc::NfcOnTagTrigger::process
void process(const std::unique_ptr< NfcTag > &tag)
Definition
automation.cpp:6
automation.h
esphome::nfc
Definition
automation.cpp:4
esphome::nfc::format_uid_to
char * format_uid_to(char *buffer, std::span< const uint8_t > uid)
Format UID to buffer with '-' separator (e.g., "04-11-22-33"). Returns buffer for inline use.
Definition
nfc.cpp:10
esphome::tag
const char * tag
Definition
log.h:74
nfc.h
Generated by
1.12.0