Be able to specify the power management mode at init time.

This commit is contained in:
Lukas Krejci
2022-11-30 15:57:52 +01:00
committed by Dario Nieuwenhuis
parent 072b8ce035
commit 001610f0d0
2 changed files with 100 additions and 8 deletions

View File

@ -70,7 +70,7 @@ async fn main(spawner: Spawner) {
spawner.spawn(wifi_task(runner)).unwrap();
control.init(clm).await;
control.init(clm, cyw43::PowerManagementMode::PowerSave).await;
//control.join_open(env!("WIFI_NETWORK")).await;
control.join_wpa2(env!("WIFI_NETWORK"), env!("WIFI_PASSWORD")).await;