15 static const uint8_t MAX_NDEF_RECORDS = 4;
30 bool add_record(std::unique_ptr<NdefRecord> record);
32 bool add_text_record(
const std::string &text,
const std::string &encoding);
35 std::vector<uint8_t>
encode();
38 std::vector<std::shared_ptr<NdefRecord>>
records_;
const std::vector< std::shared_ptr< NdefRecord > > & get_records()
NdefMessage(const NdefMessage &msg)
bool add_text_record(const std::string &text)
bool add_record(std::unique_ptr< NdefRecord > record)
std::vector< std::shared_ptr< NdefRecord > > records_
std::vector< uint8_t > encode()
bool add_uri_record(const std::string &uri)
Implementation of SPI Controller mode.