Function new

Source
pub fn new<'d>(
    _inited: &'d Controller<'d>,
    device: WIFI<'d>,
    config: Config,
) -> Result<(WifiController<'d>, Interfaces<'d>), WifiError>
Expand description

Create a Wi-Fi controller and it’s associated interfaces.

Dropping the controller will deinitialize / stop Wi-Fi.

Make sure to not call this function while interrupts are disabled, or IEEE 802.15.4 is currently in use.