nfc_llcp_read()

Register to read data from an LLCP connection.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_llcp_read(nfc_target_t *llcpConnection, size_t max_bytes_to_read)

Arguments:

llcpConnection

The LLCP connection target.

max_bytes_to_read

The expected number of bytes to read. This number should not be greater than the local MIU size. Up to MIU bytes can be read with one nfc_llcp_read() operation. If more bytes are expected, the client must call nfc_llcp_read() again after retrieving the data from the current read operation with nfc_llcp_get_read_result().

Library:

libnfc

Description:

This function registers to read data from a LLCP connection. The read result is delivered via a separate NFC event.

Returns:

NFC_RESULT_SUCCESS, or one of the following: