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)

Since:

BlackBerry 10.0.0

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 (For the qcc command, use the -l nfc option to link against this library)

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:

Last modified: 2014-05-14



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

comments powered by Disqus