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: Message.h
- Revision:
- 7:1ebd6049fa57
- Parent:
- 6:739e3211749d
- Child:
- 8:473f6e0b03df
--- a/Message.h Thu Dec 03 14:56:01 2015 +0000 +++ b/Message.h Thu Dec 10 14:58:43 2015 +0000 @@ -74,7 +74,7 @@ * @return if present a record otherwise NULL */ Record* operator[](const uint32_t index){ - if (index > mRecords.size()) + if (index >= mRecords.size()) return NULL; return mRecords[index]; }