Example application for the X-Nucleo-NFC01A1 Dynamic NFC Tag board.

Dependencies:   NDefLib X_NUCLEO_NFC01A1 mbed

Fork of HelloWorld_NFC01A1 by ST Expansion SW Team

X-NUCLEO-NFC01A1 Dynamic NFC Tag Expansion Board Firmware Package

Introduction

This firmware package includes Components Device Drivers, Board Support Package and example applications for STMicroelectronics X-NUCLEO-NFC01A1 Dynamic NFC Tag Expansion Board based on M24SR.

Example Application

This is just a simple "hello world" style program for the X-NUCLEO-NFC01A1 Dynamic NFC Tag Expansion Board. The program writes a URI link to the M24SR dynamic tag using the synchronous programming model. The URI can then be retrieved from an NFC enabled smartphone/tablet.

A more complex example providing asynchronous access to the tag is also available.

Revision:
11:925a5a491a5c
Parent:
7:435297dd022d
Child:
14:1b99908360c5
--- a/main.cpp	Fri Jan 22 09:10:12 2016 +0000
+++ b/main.cpp	Thu Jan 28 14:01:40 2016 +0000
@@ -34,7 +34,7 @@
   *
   ******************************************************************************
   */
-  
+
 #include "mbed.h"
 
 #include "X_NUCLEO_NFC01A1.h"
@@ -48,7 +48,7 @@
     
     //use default board pinout
     I2C i2cChannel(X_NUCLEO_NFC01A1::DEFAULT_SDA_PIN,X_NUCLEO_NFC01A1::DEFAULT_SDL_PIN);
-    X_NUCLEO_NFC01A1 *nfcNucleo = X_NUCLEO_NFC01A1::Instance(i2cChannel);
+    X_NUCLEO_NFC01A1 *nfcNucleo = X_NUCLEO_NFC01A1::Instance(i2cChannel,NULL);
     
     //retrieve the NdefLib interface
     NDefLib::NDefNfcTag& tag =nfcNucleo->getM24SR().getNDefTag();
@@ -82,4 +82,4 @@
             
     }else
         printf("Error open Session\n\r");
-}
+}
\ No newline at end of file