#[repr(C)]pub struct ble_gap_opt_passkey_t {
pub p_passkey: *const u8,
}
Expand description
@brief Passkey Option.
@mscs @mmsc{@ref BLE_GAP_PERIPH_BONDING_STATIC_PK_MSC} @endmscs
@details Structure containing the passkey to be used during pairing. This can be used with @ref sd_ble_opt_set to make the SoftDevice use a preprogrammed passkey for authentication instead of generating a random one.
@note Repeated pairing attempts using the same preprogrammed passkey makes pairing vulnerable to MITM attacks.
@note @ref sd_ble_opt_get is not supported for this option.
Fields§
§p_passkey: *const u8
< Pointer to 6-digit ASCII string (digit 0..9 only, no NULL termination) passkey to be used during pairing. If this is NULL, the SoftDevice will generate a random passkey if required.
Trait Implementations§
source§impl Clone for ble_gap_opt_passkey_t
impl Clone for ble_gap_opt_passkey_t
source§fn clone(&self) -> ble_gap_opt_passkey_t
fn clone(&self) -> ble_gap_opt_passkey_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more