Examples

Code samples using Open NFC

This page lists the code samples using the Open NFC API that are delivered with Open NFC.
User-contributed examples are listed on a different page: here.

C++ examples

Windows Visual C++

A few C++ examples using Open NFC are included in the Core and SDK Editions, under \core\porting\win32\win32_examples. These examples demonstrate how to read a tag, how to update a firmware, etc. Please read the PDF file in the same folder for more information on how to start and use these examples.

Linux

A few C examples are also available for Linux environment in the Linux Edition, under \core\porting\linux\examples\.
Please check the Linux Edition Porting Guide document included in the release for information about how to build these examples, in particular setting correctly the source tree layout.

Java examples

Using JNI interface (native Java porting)

The Open NFC Core, SDK and Linux Editions contain some examples in the \core\porting\jni\example1 folder. Please check the documentation in \core\porting\jni\ (Developer’s Manual) for more information about this code.

Using the Android porting

Since Open NFC follows the standard Android API for NFC, please refer to the official example here.

Except as noted otherwise, this content is licensed under the terms of the Apache 2.0 License. For details and restrictions, see the Content License.
Open NFC is a registered trademark of Inside Secure, All logos and graphics are copyrighted.