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
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, committed 2016-09-30
- Comitter:
- giovannivisentini
- Date:
- Fri Sep 30 12:43:06 2016 +0000
- Parent:
- 4:416db8919ca4
- Child:
- 6:01e1182e2320
- Commit message:
- update libs
Changed in this revision
| X_NUCLEO_NFC01A1.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/X_NUCLEO_NFC01A1.lib Wed Aug 31 11:18:55 2016 +0000 +++ b/X_NUCLEO_NFC01A1.lib Fri Sep 30 12:43:06 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST/code/X_NUCLEO_NFC01A1/#2090378b0b51 +https://developer.mbed.org/teams/ST/code/X_NUCLEO_NFC01A1/#3881985097bb
--- 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");
