This application provides a set of demos with X-NUCLEO-NFC01A1 expansion board.

Dependencies:   NDefLib X_NUCLEO_NFC01A1 mbed

Fork of X-MBED-NFC1 by Giovanni Visentini

This application provides a set of demos with X-NUCLEO-NFC01A1 expansion board.

The available demos are:

  • SAMPLE_WRITE_URL: write a tag with the ST home page URL
  • SAMPLE_COUNT_CLICK: create a custom tag to count and report the user button clicks.
  • SAMPLE_WRITE_AND_CHANGE_ALL: write a tag with all the supported records and update the tag contents when the user button is pressed.
  • SAMPLE_LOCK_TAG_CONTENT: use the M24SR component API to set the NFC tag as read-only.

To enable the different demos comment/uncomment the SAMPLE_* macros provided in main.cpp .

Files at this revision

API Documentation at this revision

Comitter:
nikapov
Date:
Tue Aug 08 13:34:00 2017 +0000
Parent:
18:d596eb3f575f
Child:
20:ba95e0dc5975
Commit message:
Update libs.

Changed in this revision

Samples/SampleAsync_writeUrl.cpp Show annotated file Show diff for this revision Revisions of this file
Samples/SampleSync_writeUrl.cpp Show annotated file Show diff for this revision Revisions of this file
X_NUCLEO_NFC01A1.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/Samples/SampleAsync_writeUrl.cpp	Thu Jul 13 12:46:03 2017 +0000
+++ b/Samples/SampleAsync_writeUrl.cpp	Tue Aug 08 13:34:00 2017 +0000
@@ -93,7 +93,7 @@
 		if(!success) {
 			printf("Error writing tag!\n\r");
 		} else {
-			printf("Tag Wrote!\n\r");
+			printf("Tag Written!\n\r");
 			mOnWrite=1;
 		}//if-else
 		tag->close_session();
--- a/Samples/SampleSync_writeUrl.cpp	Thu Jul 13 12:46:03 2017 +0000
+++ b/Samples/SampleSync_writeUrl.cpp	Tue Aug 08 13:34:00 2017 +0000
@@ -60,7 +60,7 @@
 
         //write the tag
         if (tag.write(msg)) {
-            printf("Tag writed \r\n");
+            printf("Tag written \r\n");
             nfcNucleo->get_led2()=1;
         }
 
--- a/X_NUCLEO_NFC01A1.lib	Thu Jul 13 12:46:03 2017 +0000
+++ b/X_NUCLEO_NFC01A1.lib	Tue Aug 08 13:34:00 2017 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/ST/code/X_NUCLEO_NFC01A1/#7b2b4dbed7ae
+http://developer.mbed.org/teams/ST/code/X_NUCLEO_NFC01A1/#059115ea6ece
--- a/mbed.bld	Thu Jul 13 12:46:03 2017 +0000
+++ b/mbed.bld	Tue Aug 08 13:34:00 2017 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/mbed_official/code/mbed/builds/22da6e220af6
\ No newline at end of file
+https://mbed.org/users/mbed_official/code/mbed/builds/fd96258d940d
\ No newline at end of file