![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t pm_lesc_public_key_set | ( | ble_gap_lesc_p256_pk_t * | public_key | ) |
#include <peer_manager.h>
Specify the public key to use for LESC operations.
This function can be called multiple times. The specified public key will be used for all subsequent LESC (LE Secure Connections) operations until the next time this function is called.
CONFIG_PM_LESC Kconfig option is enabled. If the CONFIG_PM_LESC Kconfig option is disabled, this function works as before.| [in] | public_key | The public key to use for all subsequent LESC operations. |
| NRF_SUCCESS | If pairing was initiated successfully. |
| NRF_ERROR_INVALID_STATE | If the Peer Manager is not initialized. |
| NRF_ERROR_FORBIDDEN | If LESC module support is enabled (see the CONFIG_PM_LESC Kconfig option). |