set_protocol

Function set_protocol 

Source
pub fn set_protocol<W>(
    buf: &mut [u8],
    write: W,
    uid: u32,
    ifx: InterfaceType,
    protocols: &Protocols,
) -> Result<(), EspError>
where W: FnMut(&[u8]) -> Result<(), EspError>,
Expand description

Set the supported WiFi protocols for the specified interface. The default protocol is (WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N). docs interface (ifx) should be 0 for Station, and 1 for Ap. Bitmap: e.g 1 | 2 | 4; = 11B | 11G | 11N. Note that this is the default.