esp_wifi::wifi

Function new_ap_sta_with_config

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

Creates a new Wifi device and controller in AP-STA mode.

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