nfc_get_handover_transport()
Retrieve the connection handover transport type.
Synopsis:
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_get_handover_transport(nfc_target_t *target, handover_transport_type_t *transport)
Arguments:
- target
-
The NFC target returned from the nfc_get_target() function.
- transport
-
The returned transport type of the connection handover; refer to handover_transport_type_t for valid types.
Library:
libnfcDescription:
Deprecated:
Use the nfc_get_handover_transport_type() function instead, after getting nfc_ndef_message_t from nfc_target_t.
This function gets the transport type of the connection handover. The retrieval of the transport type is dependent on the successful completion of the connection handover. Therefore, the application must wait for the NFC_HANDOVER_COMPLETE_EVENT before using this function.
Returns:
NFC_RESULT_SUCCESS , or NFC_RESULT_INVALID_PARAMETER , which indicates that an invalid argument was passed to the function.