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:
libnfcDescription:
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:
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_OUT_OF_MEMORY: The system memory available for the NFC system to complete this operation is insufficient.
- NFC_RESULT_SERVICE_CONNECTION_ERROR: There was a problem connecting to the NFC system.