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... | |
Functions for parsing and decoding LE OOB records.
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.
[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. |
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. |