diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-20 01:40:30 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-20 01:40:30 +0000 |
| commit | da3884ff688236c2e3930556d6d4cc11e5880870 (patch) | |
| tree | 9c86190b2537e169b6b54d7b7b7466b2f5783158 /examples | |
| parent | 67159d80bb861633a952f40c20c60db42f5ebb18 (diff) | |
| parent | 24968629ec810b844b819e8f84baab2a9349ed2f (diff) | |
Merge pull request #2282 from umgefahren/extend-cyw43-bss-info
feat: Extended the Scan API
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rp/src/bin/wifi_scan.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rp/src/bin/wifi_scan.rs b/examples/rp/src/bin/wifi_scan.rs index 45bb5b76c..e678209dd 100644 --- a/examples/rp/src/bin/wifi_scan.rs +++ b/examples/rp/src/bin/wifi_scan.rs | |||
| @@ -65,7 +65,7 @@ async fn main(spawner: Spawner) { | |||
| 65 | .set_power_management(cyw43::PowerManagementMode::PowerSave) | 65 | .set_power_management(cyw43::PowerManagementMode::PowerSave) |
| 66 | .await; | 66 | .await; |
| 67 | 67 | ||
| 68 | let mut scanner = control.scan().await; | 68 | let mut scanner = control.scan(Default::default()).await; |
| 69 | while let Some(bss) = scanner.next().await { | 69 | while let Some(bss) = scanner.next().await { |
| 70 | if let Ok(ssid_str) = str::from_utf8(&bss.ssid) { | 70 | if let Ok(ssid_str) = str::from_utf8(&bss.ssid) { |
| 71 | info!("scanned {} == {:x}", ssid_str, bss.bssid); | 71 | info!("scanned {} == {:x}", ssid_str, bss.bssid); |
