nfc_start_ndef_tag_emulation()

Start an NDEF tag emulation.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_start_ndef_tag_emulation(const nfc_ndef_message_t *msg)

Since:

BlackBerry 10.0.0

Arguments:

msg

Pointer to an NDEF message to be emulated on the virtual NDEF tag.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function creates a virtual NDEF tag and starts emulation when the application is in the foreground. Note that the tag is only active while this application is in the foreground. Also, only one virtual NDEF tag is allowed per application. The second call to the function will replace the NDEF message being emulated. The emulation of the NDEF tag is done in read-only mode, so it is not possible to write to the emulated tag.

Returns:

NFC_RESULT_SUCCESS, or one of the following:

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus