pub unsafe extern "C" fn bt_le_ext_adv_oob_get_local(
adv: *mut bt_le_ext_adv,
oob: *mut bt_le_oob,
) -> i32
Expand description
@brief Get local LE Out of Band (OOB) information.
This function allows to get local information that are useful for Out of Band pairing or connection creation.
If privacy @kconfig{CONFIG_BT_PRIVACY} is enabled this will result in generating new Resolvable Private Address (RPA) that is valid for @kconfig{CONFIG_BT_RPA_TIMEOUT} seconds. This address will be used by the advertising set.
@note When generating OOB information for multiple advertising set all OOB information needs to be generated at the same time.
@note If privacy is enabled the RPA cannot be refreshed in the following cases: - Creating a connection in progress, wait for the connected callback.
@param[in] adv The advertising set object @param[out] oob LE OOB information
@return Zero on success or error code otherwise, positive in case of protocol error or negative (POSIX) in case of stack internal error.