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.h
- Revision:
- 7:1ebd6049fa57
- Parent:
- 6:739e3211749d
- Child:
- 8:473f6e0b03df
--- a/RecordType/RecordMail.h Thu Dec 03 14:56:01 2015 +0000 +++ b/RecordType/RecordMail.h Thu Dec 10 14:58:43 2015 +0000 @@ -64,7 +64,7 @@ * @param subject mail subject * @param msg message */ - explicit RecordMail(const std::string &toAddress, const std::string &subject, + RecordMail(const std::string &toAddress, const std::string &subject, const std::string &msg) : RecordURI(RecordURI::MAIL), mToAddress(toAddress), mSubject( subject), mBody(msg),mContentIsChange(true) { } ; @@ -102,6 +102,12 @@ return TYPE_URI_MAIL; } //getType + bool operator==(const RecordMail& other)const{ + return mToAddress == other.mToAddress && + mSubject == other.mSubject && + mBody == other.mBody; + } + protected: virtual void updateContent();