mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 16:35:12 +02:00
rfid-reader: take the NDEF records by reference
get_records() now returns a StaticVector of unique_ptr, which can't be copied.
This commit is contained in:
1 parent
46cf3b1fe8
commit
a005b940b2
1 file changed
+1
-1
@@ -171,7 +171,7 @@ pn532_i2c:
|
|||||||
id(info)="";
|
id(info)="";
|
||||||
if (tag.has_ndef_message()) {
|
if (tag.has_ndef_message()) {
|
||||||
auto message = tag.get_ndef_message();
|
auto message = tag.get_ndef_message();
|
||||||
auto records = message->get_records();
|
const auto &records = message->get_records();
|
||||||
for (auto &record : records) {
|
for (auto &record : records) {
|
||||||
std::string payload = record->get_payload();
|
std::string payload = record->get_payload();
|
||||||
std::string type = record->get_type();
|
std::string type = record->get_type();
|
||||||
|
|||||||
Reference in new issue
Block a user