esp_wifi::wifi

Function new_ap_sta

Source
pub fn new_ap_sta<'d>(
    inited: &'d EspWifiController<'d>,
    device: impl Peripheral<P = WIFI> + 'd,
) -> Result<(WifiDevice<'d, WifiApDevice>, WifiDevice<'d, WifiStaDevice>, WifiController<'d>), WifiError>
Expand description

Creates a new WifiDevice and WifiController in AP-STA mode, with a default configuration.

Returns a tuple of (AP device, STA device, controller).