Retrieve an ISO 14443-4 command from the NFC_ISO14443_4_COMMAND_EVENT event.
#include <nfc/nfc.h>
NFC_API nfc_result_t nfc_get_iso14443_4_emulation_command(const nfc_target_t *target, uchar_t *command, size_t max_command_length, size_t *command_length)
BlackBerry 10.0.0
The target returned from the nfc_get_target() function during the HCE.
A pointer to a preallocated command buffer.
The length of the preallocated command buffer. The length should be at least NFC_ISO14443_4_COMMAND_BUFFER_LENGTH to ensure there is enough space to accommodate the returned command from the NFC driver.
The length of the returned command copied into the command buffer.
This function lets you retrieve the data for a command sent by a reader during a successful Host Card Emulation (HCE). If this function fails to return NFC_RESULT_SUCCESS, command and command_length will remain unchanged.