ESPHome  2024.3.2
nfc_helpers.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "nfc_tag.h"
4 
5 namespace esphome {
6 namespace nfc {
7 
8 static const char HA_TAG_ID_EXT_RECORD_TYPE[] = "android.com:pkg";
9 static const char HA_TAG_ID_EXT_RECORD_PAYLOAD[] = "io.homeassistant.companion.android";
10 static const char HA_TAG_ID_PREFIX[] = "https://www.home-assistant.io/tag/";
11 
12 std::string get_ha_tag_ndef(NfcTag &tag);
13 std::string get_random_ha_tag_ndef();
14 bool has_ha_tag_ndef(NfcTag &tag);
15 
16 } // namespace nfc
17 } // namespace esphome
bool has_ha_tag_ndef(NfcTag &tag)
Definition: nfc_helpers.cpp:8
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
std::string get_random_ha_tag_ndef()
Definition: nfc_helpers.cpp:26
std::string get_ha_tag_ndef(NfcTag &tag)
Definition: nfc_helpers.cpp:10