![](/media/cache/group/ST_logo_2020_blue_V_cmyk.jpg.50x50_q85.jpg)
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
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 .
Diff: Samples/SampleSync_writeAndChangeAll.cpp
- Revision:
- 18:d596eb3f575f
- Parent:
- 17:d8d3d2088cac
--- a/Samples/SampleSync_writeAndChangeAll.cpp Thu Jul 13 09:41:01 2017 +0000 +++ b/Samples/SampleSync_writeAndChangeAll.cpp Thu Jul 13 12:46:03 2017 +0000 @@ -1,6 +1,6 @@ /** ****************************************************************************** - * @file Sample_writeAndChangeAll.cpp + * @file SampleSynch_writeAndChangeAll.cpp * @author ST / Central Labs * @date 03 Dic 2015 * @brief This demo write an ndef message different records, when the user press the buttun @@ -123,18 +123,21 @@ closeStatus = tag.close_session(); - }else + } else { printf("Error open Session\n\r"); + } - if(writeStatus) + if (writeStatus) { printf("Write Done\n\r"); - else + } else { printf("Write Fail\n\r"); + } - if(closeStatus) + if (closeStatus) { printf("Close Done\n\r"); - else + } else { printf("Close Fail\n\r"); + } } /**