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/RecordVCard.h
- Revision:
- 20:31f727872290
- Parent:
- 19:13d84b136a62
--- a/RecordType/RecordVCard.h Fri Apr 28 12:13:51 2017 +0000 +++ b/RecordType/RecordVCard.h Wed Jul 12 12:33:42 2017 +0000 @@ -117,9 +117,10 @@ */ const std::string& operator[](const VCardField_t &type)const { VCardInfo_t::const_iterator elem = mCardInfo.find(type); - if (elem == mCardInfo.end()) + if (elem == mCardInfo.end()) { return sEmptyTagContent; - //else + } + return elem->second; } @@ -215,3 +216,6 @@ } /* namespace NDefLib */ #endif /* NDEFLIB_RECORDTYPE_RECORDVCARD_H_ */ + + +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/