S115 SoftDevice for nRF54LM20 API documentation 10.0.0
Loading...
Searching...
No Matches
ble_gap_opt_passkey_t Struct Reference

Passkey Option. More...

#include </home/runner/work/sdk-nrf-bm/sdk-nrf-bm/sdk-nrf-bm/nrf-bm/components/softdevice/nrf54lm/s115/s115_API/include/ble_gap.h>

Data Fields

uint8_t const * p_passkey
 

Detailed Description

Passkey Option.

Relevant Message Sequence Charts
Peripheral Legacy Bonding: Passkey Entry with application-provided passkey

Structure containing the passkey to be used during pairing. This can be used with sd_ble_opt_set to make the SoftDevice use an application-provided passkey for authentication instead of an internally generated one.

Note
The passkey shall be generated for every pairing attempt by secure random number generator.
Repeated pairing attempts using the same passkey makes pairing vulnerable to MITM attacks and is not allowed by the Bluetooth Core Specification, Vol 3, Part H, Section 2.3.5.3 and 2.3.5.6.3. The passkey will only be used for one pairing attempt and the SoftDevice will internally generate a new passkey for the next pairing attempt unless sd_ble_opt_set is called again.
sd_ble_opt_get is not supported for this option.

The documentation for this struct was generated from the following file: