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

◆ pm_lesc_public_key_set()

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.

Note
The key must continue to reside in application memory as it is not copied by Peer Manager.
This function is deprecated. LESC keys are now handled internally if the CONFIG_PM_LESC Kconfig option is enabled. If the CONFIG_PM_LESC Kconfig option is disabled, this function works as before.
Parameters
[in]public_keyThe public key to use for all subsequent LESC operations.
Return values
NRF_SUCCESSIf pairing was initiated successfully.
NRF_ERROR_INVALID_STATEIf the Peer Manager is not initialized.
NRF_ERROR_FORBIDDENIf LESC module support is enabled (see the CONFIG_PM_LESC Kconfig option).