LE OOB records parser

nRF5 SDK v13.1.0

Functions for parsing and decoding LE OOB records. More...

Functions

ret_code_t nfc_le_oob_rec_parse ( nfc_ndef_record_desc_t const *const p_rec_desc, nfc_ble_oob_pairing_data_t *const p_nfc_ble_oob_pairing_data)
Function for parsing general record description as LE OOB record. More...

Detailed Description

Functions for parsing and decoding LE OOB records.

Function Documentation

ret_code_t nfc_le_oob_rec_parse ( nfc_ndef_record_desc_t const *const p_rec_desc ,
nfc_ble_oob_pairing_data_t *const p_nfc_ble_oob_pairing_data
)

Function for parsing general record description as LE OOB record.

This function checks if record description matches the LE OOB record pattern and extracts BLE OOB Advertising data structure. It is required for the record description to use binary payload descriptor.

Parameters
[in] p_rec_desc Pointer to the record descriptor.
[in,out] p_nfc_ble_oob_pairing_data Pointer to the structure that will be used to hold parsed data.
Return values
NRF_SUCCESS If the function completed successfully.
NRF_ERROR_INVALID_DATA If the NDEF record type or TNF is incorrect.
NRF_ERROR_NOT_SUPPORTED If the payload descriptor is not binary.
Other An error code that might have been returned by nfc_ble_oob_advdata_parse function.