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 ST Expansion SW Team

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.

Revision:
19:13d84b136a62
Parent:
12:ed4d9b8d1410
Child:
20:31f727872290
--- a/RecordType/RecordVCard.h	Thu Oct 27 07:39:26 2016 +0000
+++ b/RecordType/RecordVCard.h	Fri Apr 28 12:13:51 2017 +0000
@@ -2,8 +2,8 @@
  ******************************************************************************
  * @file    RecordVCard.h
  * @author  ST / Central Labs
- * @version V1.0.0
- * @date    16 Nov 2015
+ * @version V2.0.0
+ * @date    28 Apr 2017
  * @brief   {@link RecordMimeType} that contains a VCard data
  ******************************************************************************
  * @attention
@@ -137,7 +137,7 @@
      * Get the record type.
      * @return TYPE_MIME_VCARD
 	 */
-	virtual RecordType_t getType() const {
+	virtual RecordType_t get_type() const {
 		return TYPE_MIME_VCARD;
 	} //getType
 
@@ -145,9 +145,9 @@
 	 * @return update the record content and return the number of
 	 * bytes needed to store this record
 	 */
-	virtual uint16_t getByteLength() {
-		updateContentInfoString();
-		return RecordMimeType::getByteLength();
+	virtual uint16_t get_byte_length() {
+		update_content_info_string();
+		return RecordMimeType::get_byte_length();
 	}
 
 	/**
@@ -157,7 +157,7 @@
 	 * @see Record#write
 	 */
 	virtual uint16_t write(uint8_t *buffer){
-		updateContentInfoString();
+		update_content_info_string();
 		return RecordMimeType::write(buffer);
 	}
 
@@ -182,7 +182,7 @@
 	/**
 	 * Generate a string representing the vcard info
 	 */
-	void updateContentInfoString(); 
+	void update_content_info_string();
 
 	/**
 	 * Check if the string that starts from the offset position is a valid
@@ -191,7 +191,7 @@
 	 * @param offset Search offset.
 	 * @return type index of the found field or a negative number if not a valid vcard 
 	 */
-	static int8_t findVCardFieldType(const std::string &content,
+	static int8_t find_VCard_field_type(const std::string &content,
 			uint16_t offset);
 
 	/**
@@ -201,7 +201,7 @@
 	 * @return field length
 	 * @par This function searches the first sEndVCardTag appearance.
 	 */
-	static uint16_t findVCardFieldDataLenght(const std::string &content,
+	static uint16_t find_VCard_field_data_lenght(const std::string &content,
 			uint16_t offset);
 
 	static const std::string sVcardMimeType;