wifi: implement station change and connect
This commit is contained in:
+1
-3
@@ -130,10 +130,8 @@ async fn main(spawner: Spawner) {
|
||||
));
|
||||
|
||||
let wifi_store = WifiStore::new(nvs.clone()).await.expect("Could not initialize WiFi store");
|
||||
|
||||
let init_credentials = Wifi::initialize_credentials(&wifi_store).await.expect("Could not get init WiFi credentials");
|
||||
|
||||
let wifi = Wifi::new(esp_peripherals.WIFI, init_credentials).expect("Could not initialize WiFi");
|
||||
let wifi = Wifi::new(esp_peripherals.WIFI, init_credentials).await.expect("Could not initialize WiFi");
|
||||
|
||||
let card_store = CardStore::new(nvs.clone())
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user