WifiApRecord

Struct WifiApRecord 

Source
pub struct WifiApRecord {
Show 15 fields pub bssid: [u8; 6], pub ssid: Vec<u8, 33>, pub primary: u8, pub second: WifiSecondChan, pub rssi: i8, pub authmode: WifiAuthMode, pub pairwise_cipher: WifiCipher, pub group_cipher: WifiCipher, pub ant: WifiAnt, pub bitmask: u32, pub country: WifiCountry, pub he_ap: WifiHeApInfo, pub bandwidth: WifiBandwidth, pub vht_ch_freq1: u8, pub vht_ch_freq2: u8,
}
Expand description

Description of a Wi-Fi AP. docs

Fields§

§bssid: [u8; 6]§ssid: Vec<u8, 33>§primary: u8

Channel of AP

§second: WifiSecondChan§rssi: i8§authmode: WifiAuthMode§pairwise_cipher: WifiCipher§group_cipher: WifiCipher§ant: WifiAnt

Antenna used to receive beacon from AP

§bitmask: u32

Bit 0, 11b. 1: 11g. 2: 11n. 3: low rate. 4-6: 11ax mode.

§country: WifiCountry§he_ap: WifiHeApInfo§bandwidth: WifiBandwidth

For AP 20 MHz this value is set to 1. For AP 40 MHz this value is set to 2. For AP 80 MHz this value is set to 3. For AP 160MHz this value is set to 4. For AP 80+80MHz this value is set to 5

§vht_ch_freq1: u8

This fields are used only AP bandwidth is 80 and 160 MHz, to transmit the center channel frequency of the BSS. For AP bandwidth is 80 + 80 MHz, it is the center channel frequency of the lower frequency segment.

§vht_ch_freq2: u8

This fields are used only AP bandwidth is 80 + 80 MHz, and is used to transmit the center channel frequency of the second segment.

Implementations§

Source§

impl WifiApRecord

Source

pub fn from_bytes(buf: &[u8]) -> Result<(Self, usize), EspError>

Trait Implementations§

Source§

impl Default for WifiApRecord

Source§

fn default() -> WifiApRecord

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

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.