nfc_register_snep_client()

Register to receive an event when an NFC-Forum SNEP client connection is ready.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_register_snep_client()

Since:

BlackBerry 10.0.0

Arguments:

Library:

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

Description:

This function registers for an event which indicates an LLCP connection in the NFC_LLCP_CLIENT mode is established with another NFC-enabled device. The NFC-enabled device supports the NFC Forum SNEP specification. On a successful detection, a call to the nfc_get_event_type() function returns a NFC_SNEP_CONNECTION_EVENT.

This function enables the communication between the application and other Forum-enabled devices. This communication uses NFC-Forum SNEP protocol as the SNEP client.

Returns:

NFC_RESULT_SUCCESS, or NFC_RESULT_SERVICE_CONNECTION_ERROR, which indicates that the application is not connected to the NFC system. Successive calls to this function have no effect and return NFC_RESULT_SUCCESS.

Last modified: 2014-05-14



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

comments powered by Disqus