ESPHome 2026.5.1
Loading...
Searching...
No Matches
nfc_helpers.h
Go to the documentation of this file.
1#pragma once
2
3#include "nfc_tag.h"
4
5namespace esphome::nfc {
6
7static const char HA_TAG_ID_EXT_RECORD_TYPE[] = "android.com:pkg";
8static const char HA_TAG_ID_EXT_RECORD_PAYLOAD[] = "io.homeassistant.companion.android";
9static const char HA_TAG_ID_PREFIX[] = "https://www.home-assistant.io/tag/";
10
11std::string get_ha_tag_ndef(NfcTag &tag);
12std::string get_random_ha_tag_ndef();
13bool has_ha_tag_ndef(NfcTag &tag);
14
15} // namespace esphome::nfc
std::string get_ha_tag_ndef(NfcTag &tag)
std::string get_random_ha_tag_ndef()
bool has_ha_tag_ndef(NfcTag &tag)
const char * tag
Definition log.h:74