Utility library to read and write Ndef messages from/to a Type4 NFC tag
Dependents: NFC M2M_2016_STM32 MyongjiElec_capstone1 IDW01M1_Cloud_IBM ... more
Fork of NDefLib by
NDEF NFC library
This library provides an abstract API to create NDEF formatted messages and records and to read/write them from/to a Type4 NFC Tag.
Implementations
At the moment, the NDEF API is implemented by X_NUCLEO_NFC01A1 and X_NUCLEO_NFC02A1 Dynamic NFC Tag libraries respectively driving the X-NUCLEO-NFC01A1 and X-NUCLEO-NFC02A1 boards.
Diff: RecordType/RecordMail.cpp
- Revision:
- 7:1ebd6049fa57
- Parent:
- 6:739e3211749d
- Child:
- 8:473f6e0b03df
--- a/RecordType/RecordMail.cpp Thu Dec 03 14:56:01 2015 +0000 +++ b/RecordType/RecordMail.cpp Thu Dec 10 14:58:43 2015 +0000 @@ -64,7 +64,7 @@ return NULL; } const std::string uriContent((const char*) (buffer + 2), - header.getPlayloadLength() - 1); + header.getPayloadLength() - 1); std::size_t subjectStart = uriContent.find(sSubjectTag); if (subjectStart == std::string::npos) //subject not present