### Initialize WifiStack with Direct Credentials Source: https://github.com/oyvindnetland/esp-embassy-wifihelper/blob/main/README.md Initializes the `WifiStack` with provided SSID and password for immediate Wi-Fi connection. This method requires the `spawner`, peripheral handles, and network credentials as input. ```rust let wifi = WifiStack::new( spawner, peripherals.WIFI, peripherals.TIMG0, peripherals.RNG, peripherals.RADIO_CLK, SSID.try_into().unwrap(), PASSWORD.try_into().unwrap(), ); ``` -------------------------------- ### Initialize WifiStack for Delayed Connection Source: https://github.com/oyvindnetland/esp-embassy-wifihelper/blob/main/README.md Initializes the `WifiStack` to connect later via a channel, useful when credentials are unknown at startup. It sets up hardware resources and tasks, waiting for `ClientConfiguration` messages on a receiver. ```rust static CHANNEL: Channel = Channel::new(); let wifi = WifiStack::new_connect_later( spawner, peripherals.WIFI, peripherals.TIMG0, peripherals.RNG, peripherals.RADIO_CLK, CHANNEL.receiver(), ); ``` -------------------------------- ### Send Wi-Fi Configuration via Channel Source: https://github.com/oyvindnetland/esp-embassy-wifihelper/blob/main/README.md Sends Wi-Fi connection details (SSID and password) through a channel to trigger the Wi-Fi connection process. This is used in conjunction with `WifiStack::new_connect_later`. ```rust let client_config = ClientConfiguration { ssid: SSID.try_into().unwrap(), password: PASSWORD.try_into().unwrap(), ..Default::default() }; let _ = CHANNEL.send(client_config).await; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.