Embassy
nrf-softdevice-s132

Crates

git

Versions

default

Flavors

pub unsafe fn sd_ble_gap_lesc_oob_data_get(
conn_handle: u16,
p_pk_own: *const ble_gap_lesc_p256_pk_t,
p_oobd_own: *mut ble_gap_lesc_oob_data_t
) -> u32
Expand description

@brief Generate a set of OOB data to send to a peer out of band.

@note The @ref ble_gap_addr_t included in the OOB data returned will be the currently active one (or, if a connection has already been established, the one used during connection setup). The application may manually overwrite it with an updated value.

@mscs @mmsc{@ref BLE_GAP_PERIPH_LESC_BONDING_OOB_MSC} @mmsc{@ref BLE_GAP_CENTRAL_LESC_BONDING_OOB_MSC} @endmscs

@param[in] conn_handle Connection handle. Can be @ref BLE_CONN_HANDLE_INVALID if a BLE connection has not been established yet. @param[in] p_pk_own LE Secure Connections local P-256 Public Key. @param[out] p_oobd_own The OOB data to be sent out of band to a peer.

@retval ::NRF_SUCCESS OOB data successfully generated. @retval ::NRF_ERROR_INVALID_ADDR Invalid pointer supplied. @retval ::BLE_ERROR_INVALID_CONN_HANDLE Invalid connection handle supplied.