Last active
October 2, 2022 20:05
-
-
Save mfiumara/994defd200b0653ce0fe457c1f6681f9 to your computer and use it in GitHub Desktop.
WiFi set-up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize wifi configuration as a client configuration | |
let mut wifi = EspWifi::new( | |
Arc::new(EspNetifStack::new().unwrap()), | |
Arc::new(EspSysLoopStack::new().unwrap()), | |
Arc::new(EspDefaultNvs::new().unwrap()), | |
).unwrap(); | |
wifi.set_configuration( | |
&Configuration::Client(ClientConfiguration { | |
ssid: "<SSID>".into(), | |
password: "<password>".into(), | |
..Default::default() | |
}) | |
).unwrap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment