set_mode

Function set_mode 

Source
pub fn set_mode<W>(
    buf: &mut [u8],
    write: W,
    uid: u32,
    mode: WifiMode,
) -> Result<(), EspError>
where W: FnMut(&[u8]) -> Result<(), EspError>,
Expand description

Options: 0: Radio off 1: Station/client: Can scan and connect 2: Soft AP; cannot scan. 3: Soft-AP and Sta (slower scan) 4: Wi-Fi aware. (Not relevant to normal scanning)