11 static const uint8_t TNF_EMPTY = 0x00;
12 static const uint8_t TNF_WELL_KNOWN = 0x01;
13 static const uint8_t TNF_MIME_MEDIA = 0x02;
14 static const uint8_t TNF_ABSOLUTE_URI = 0x03;
15 static const uint8_t TNF_EXTERNAL_TYPE = 0x04;
16 static const uint8_t TNF_UNKNOWN = 0x05;
17 static const uint8_t TNF_UNCHANGED = 0x06;
18 static const uint8_t TNF_RESERVED = 0x07;
30 virtual std::unique_ptr<NdefRecord>
clone()
const {
31 return make_unique<NdefRecord>(*this);
36 std::vector<uint8_t>
encode(
bool first,
bool last);
41 const std::string &
get_id()
const {
return this->
id_; };
void set_id(const std::string &id)
void set_tnf(uint8_t tnf)
virtual std::vector< uint8_t > get_encoded_payload()
T id(T value)
Helper function to make id(var) known from lambdas work in custom components.
std::vector< uint8_t > encode(bool first, bool last)
const std::string & get_id() const
virtual std::unique_ptr< NdefRecord > clone() const
virtual const std::string & get_payload() const
void set_type(const std::string &type)
uint8_t create_flag_byte(bool first, bool last, size_t payload_size)
uint32_t get_encoded_size()
void set_payload(const std::string &payload)
Implementation of SPI Controller mode.
const std::string & get_type() const