Struct esp_idf_sys::wifi_ap_config_t

source ·
#[repr(C)]
pub struct wifi_ap_config_t {
Show 14 fields pub ssid: [u8; 32], pub password: [u8; 64], pub ssid_len: u8, pub channel: u8, pub authmode: wifi_auth_mode_t, pub ssid_hidden: u8, pub max_connection: u8, pub beacon_interval: u16, pub csa_count: u8, pub dtim_period: u8, pub pairwise_cipher: wifi_cipher_type_t, pub ftm_responder: bool, pub pmf_cfg: wifi_pmf_config_t, pub sae_pwe_h2e: wifi_sae_pwe_method_t,
}
Expand description

@brief Soft-AP configuration settings for the device

Fields§

§ssid: [u8; 32]

< SSID of soft-AP. If ssid_len field is 0, this must be a Null terminated string. Otherwise, length is set according to ssid_len.

§password: [u8; 64]

< Password of soft-AP.

§ssid_len: u8

< Optional length of SSID field.

§channel: u8

< Channel of soft-AP

§authmode: wifi_auth_mode_t

< Auth mode of soft-AP. Do not support AUTH_WEP, AUTH_WAPI_PSK and AUTH_OWE in soft-AP mode. When the auth mode is set to WPA2_PSK, WPA2_WPA3_PSK or WPA3_PSK, the pairwise cipher will be overwritten with WIFI_CIPHER_TYPE_CCMP.

§ssid_hidden: u8

< Broadcast SSID or not, default 0, broadcast the SSID

§max_connection: u8

< Max number of stations allowed to connect in

§beacon_interval: u16

< Beacon interval which should be multiples of 100. Unit: TU(time unit, 1 TU = 1024 us). Range: 100 ~ 60000. Default value: 100

§csa_count: u8

< Channel Switch Announcement Count. Notify the station that the channel will switch after the csa_count beacon intervals. Default value: 3

§dtim_period: u8

< Dtim period of soft-AP. Default value: 2

§pairwise_cipher: wifi_cipher_type_t

< Pairwise cipher of SoftAP, group cipher will be derived using this. Cipher values are valid starting from WIFI_CIPHER_TYPE_TKIP, enum values before that will be considered as invalid and default cipher suites(TKIP+CCMP) will be used. Valid cipher suites in softAP mode are WIFI_CIPHER_TYPE_TKIP, WIFI_CIPHER_TYPE_CCMP and WIFI_CIPHER_TYPE_TKIP_CCMP.

§ftm_responder: bool

< Enable FTM Responder mode

§pmf_cfg: wifi_pmf_config_t

< Configuration for Protected Management Frame

§sae_pwe_h2e: wifi_sae_pwe_method_t

< Configuration for SAE PWE derivation method

Trait Implementations§

source§

impl Clone for wifi_ap_config_t

source§

fn clone(&self) -> wifi_ap_config_t

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for wifi_ap_config_t

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for wifi_ap_config_t

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for wifi_ap_config_t

Auto Trait Implementations§

§

impl Freeze for wifi_ap_config_t

§

impl RefUnwindSafe for wifi_ap_config_t

§

impl Send for wifi_ap_config_t

§

impl Sync for wifi_ap_config_t

§

impl Unpin for wifi_ap_config_t

§

impl UnwindSafe for wifi_ap_config_t

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Copy,

§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.