[][src]Struct nrf_softdevice_s112::ble_gap_opt_passkey_t

#[repr(C)]pub struct ble_gap_opt_passkey_t {
    pub p_passkey: *const u8,
}

@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

impl Clone for ble_gap_opt_passkey_t[src]

impl Copy for ble_gap_opt_passkey_t[src]

impl Debug for ble_gap_opt_passkey_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.