A simple application providing an example of asynchronous access to the X-NUCLEO_NFC01A1 Dynamic NFC Tag board.

Dependencies:   NDefLib X_NUCLEO_NFC01A1 mbed

Fork of HelloWord_Async_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

The application provides a simple example of asynchronous access to the X-NUCLEO-NFC01A1 Dynamic NFC Tag Expansion Board. The program writes a URI link to the M24SR dynamic tag using the asynchronous programming model. The URI can then be retrieved from an NFC enabled smartphone/tablet.

A simpler example providing synchronous access to the tag is also available.

Revision:
5:adf7d29c9431
Parent:
4:416db8919ca4
Child:
6:01e1182e2320
--- a/main.cpp	Wed Aug 31 11:18:55 2016 +0000
+++ b/main.cpp	Fri Sep 30 12:43:06 2016 +0000
@@ -231,7 +231,7 @@
 
     //No call back needed since default behavior is sync
     nfcNucleo->getM24SR().GetSession();
-    nfcNucleo->getM24SR().ManageI2CGPO(I2C_ANSWER_READY); //switch to async mode
+    nfcNucleo->getM24SR().ManageI2CGPO(M24SR::I2C_ANSWER_READY); //switch to async mode
 
     NDefLib::NDefNfcTag &tag = nfcNucleo->getM24SR().getNDefTag();
     printf("System Init done!\n\r");