ESPHome  2024.9.2
Public Member Functions | Protected Attributes
esphome::nfc::NfcTag Class Reference

#include <nfc_tag.h>

Public Member Functions

 NfcTag ()
 
 NfcTag (std::vector< uint8_t > &uid)
 
 NfcTag (std::vector< uint8_t > &uid, const std::string &tag_type)
 
 NfcTag (std::vector< uint8_t > &uid, const std::string &tag_type, std::unique_ptr< nfc::NdefMessage > ndef_message)
 
 NfcTag (std::vector< uint8_t > &uid, const std::string &tag_type, std::vector< uint8_t > &ndef_data)
 
 NfcTag (const NfcTag &rhs)
 
std::vector< uint8_t > & get_uid ()
 
const std::string & get_tag_type ()
 
bool has_ndef_message ()
 
const std::shared_ptr< NdefMessage > & get_ndef_message ()
 
void set_ndef_message (std::unique_ptr< NdefMessage > ndef_message)
 

Protected Attributes

std::vector< uint8_t > uid_
 
std::string tag_type_
 
std::shared_ptr< NdefMessagendef_message_
 

Detailed Description

Definition at line 13 of file nfc_tag.h.

Constructor & Destructor Documentation

◆ NfcTag() [1/6]

esphome::nfc::NfcTag::NfcTag ( )
inline

Definition at line 15 of file nfc_tag.h.

◆ NfcTag() [2/6]

esphome::nfc::NfcTag::NfcTag ( std::vector< uint8_t > &  uid)
inline

Definition at line 19 of file nfc_tag.h.

◆ NfcTag() [3/6]

esphome::nfc::NfcTag::NfcTag ( std::vector< uint8_t > &  uid,
const std::string &  tag_type 
)
inline

Definition at line 23 of file nfc_tag.h.

◆ NfcTag() [4/6]

esphome::nfc::NfcTag::NfcTag ( std::vector< uint8_t > &  uid,
const std::string &  tag_type,
std::unique_ptr< nfc::NdefMessage ndef_message 
)
inline

Definition at line 27 of file nfc_tag.h.

◆ NfcTag() [5/6]

esphome::nfc::NfcTag::NfcTag ( std::vector< uint8_t > &  uid,
const std::string &  tag_type,
std::vector< uint8_t > &  ndef_data 
)
inline

Definition at line 32 of file nfc_tag.h.

◆ NfcTag() [6/6]

esphome::nfc::NfcTag::NfcTag ( const NfcTag rhs)
inline

Definition at line 37 of file nfc_tag.h.

Member Function Documentation

◆ get_ndef_message()

const std::shared_ptr<NdefMessage>& esphome::nfc::NfcTag::get_ndef_message ( )
inline

Definition at line 47 of file nfc_tag.h.

◆ get_tag_type()

const std::string& esphome::nfc::NfcTag::get_tag_type ( )
inline

Definition at line 45 of file nfc_tag.h.

◆ get_uid()

std::vector<uint8_t>& esphome::nfc::NfcTag::get_uid ( )
inline

Definition at line 44 of file nfc_tag.h.

◆ has_ndef_message()

bool esphome::nfc::NfcTag::has_ndef_message ( )
inline

Definition at line 46 of file nfc_tag.h.

◆ set_ndef_message()

void esphome::nfc::NfcTag::set_ndef_message ( std::unique_ptr< NdefMessage ndef_message)
inline

Definition at line 48 of file nfc_tag.h.

Field Documentation

◆ ndef_message_

std::shared_ptr<NdefMessage> esphome::nfc::NfcTag::ndef_message_
protected

Definition at line 53 of file nfc_tag.h.

◆ tag_type_

std::string esphome::nfc::NfcTag::tag_type_
protected

Definition at line 52 of file nfc_tag.h.

◆ uid_

std::vector<uint8_t> esphome::nfc::NfcTag::uid_
protected

Definition at line 48 of file nfc_tag.h.


The documentation for this class was generated from the following file: