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.cpp
- Revision:
- 17:46899fa3d9f2
- Parent:
- 12:ed4d9b8d1410
- Child:
- 18:cf1dd5c931c2
--- a/Message.cpp Tue Feb 02 16:04:15 2016 +0000 +++ b/Message.cpp Wed Aug 31 08:32:13 2016 +0000 @@ -113,4 +113,14 @@ } +void Message::removeAndDeleteAllRecord(Message &msg){ + const uint32_t nRecords =msg.getNRecords(); + for(int i =0 ;i<nRecords ;i++){ + NDefLib::Record *r = msg[i]; + delete r; + }//for + msg.mRecords.clear(); +}//removeAndDeleteAllRecord + + } /* namespace NDefLib */