[][src]Struct esp_idf_bindgen::wifi_sta_config_t

#[repr(C)]pub struct wifi_sta_config_t {
    pub ssid: [u8; 32],
    pub password: [u8; 64],
    pub scan_method: wifi_scan_method_t,
    pub bssid_set: bool,
    pub bssid: [u8; 6],
    pub channel: u8,
    pub listen_interval: u16,
    pub sort_method: wifi_sort_method_t,
    pub threshold: wifi_scan_threshold_t,
    pub pmf_cfg: wifi_pmf_config_t,
}

@brief STA configuration settings for the ESP32

Fields

ssid: [u8; 32]

< SSID of target AP. Null terminated string.

password: [u8; 64]

< Password of target AP. Null terminated string.

scan_method: wifi_scan_method_t

< do all channel scan or fast scan

bssid_set: bool

< whether set MAC address of target AP or not. Generally, station_config.bssid_set needs to be 0; and it needs to be 1 only when users need to check the MAC address of the AP.

bssid: [u8; 6]

< MAC address of target AP

channel: u8

< channel of target AP. Set to 1~13 to scan starting from the specified channel before connecting to AP. If the channel of AP is unknown, set it to 0.

listen_interval: u16

< Listen interval for ESP32 station to receive beacon when WIFI_PS_MAX_MODEM is set. Units: AP beacon intervals. Defaults to 3 if set to 0.

sort_method: wifi_sort_method_t

< sort the connect AP in the list by rssi or security mode

threshold: wifi_scan_threshold_t

< When sort_method is set, only APs which have an auth mode that is more secure than the selected auth mode and a signal stronger than the minimum RSSI will be used.

pmf_cfg: wifi_pmf_config_t

< Configuration for Protected Management Frame. Will be advertized in RSN Capabilities in RSN IE.

Trait Implementations

impl Clone for wifi_sta_config_t[src]

impl Copy for wifi_sta_config_t[src]

Auto Trait Implementations

impl Send for wifi_sta_config_t

impl Sync for wifi_sta_config_t

impl Unpin for wifi_sta_config_t

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.