nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ nrf_ble_lesc_request_handler()

uint32_t nrf_ble_lesc_request_handler ( void )

#include <nrf_ble_lesc.h>

Respond to DH key requests.

This function calculates DH keys and supplies them to the SoftDevice if there are any pending requests for keys.

Note
This function should be called systematically (e.g. in the main application loop) to handle any pending DH key requests.
Return values
NRF_SUCCESSIf the operation was successful.
NRF_ERROR_INTERNALIf the LESC module encountered an internal error. The only way to recover from this type of error is to reset the application.
Returns
Other error codes might be returned by the sd_ble_gap_lesc_dhkey_reply function.