diff options
| author | rafael <rafael> | 2024-06-24 22:12:18 +0200 |
|---|---|---|
| committer | rafael <rafael> | 2024-06-24 22:12:18 +0200 |
| commit | b927c22ac0af570674315da9a8b77d3e7a7e10ea (patch) | |
| tree | 891b5cc0af9164775947be6815b3b5a4296041e5 /examples | |
| parent | 6dae3c02c02ae25cd2fdb46673948a1c90b14944 (diff) | |
rustfmt
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rp/src/bin/wifi_webrequest.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rp/src/bin/wifi_webrequest.rs b/examples/rp/src/bin/wifi_webrequest.rs index 50136da32..e0c91df53 100644 --- a/examples/rp/src/bin/wifi_webrequest.rs +++ b/examples/rp/src/bin/wifi_webrequest.rs | |||
| @@ -95,7 +95,7 @@ async fn main(spawner: Spawner) { | |||
| 95 | unwrap!(spawner.spawn(net_task(stack))); | 95 | unwrap!(spawner.spawn(net_task(stack))); |
| 96 | 96 | ||
| 97 | loop { | 97 | loop { |
| 98 | //match control.join_open(WIFI_NETWORK).await { // for open networks | 98 | //match control.join_open(WIFI_NETWORK).await { // for open networks |
| 99 | match control.join_wpa2(WIFI_NETWORK, WIFI_PASSWORD).await { | 99 | match control.join_wpa2(WIFI_NETWORK, WIFI_PASSWORD).await { |
| 100 | Ok(_) => break, | 100 | Ok(_) => break, |
| 101 | Err(err) => { | 101 | Err(err) => { |
| @@ -136,7 +136,7 @@ async fn main(spawner: Spawner) { | |||
| 136 | let mut http_client = HttpClient::new_with_tls(&tcp_client, &dns_client, tls_config); | 136 | let mut http_client = HttpClient::new_with_tls(&tcp_client, &dns_client, tls_config); |
| 137 | let url = "https://worldtimeapi.org/api/timezone/Europe/Berlin"; | 137 | let url = "https://worldtimeapi.org/api/timezone/Europe/Berlin"; |
| 138 | // for non-TLS requests, use this instead: | 138 | // for non-TLS requests, use this instead: |
| 139 | // let mut http_client = HttpClient::new(&tcp_client, &dns_client); | 139 | // let mut http_client = HttpClient::new(&tcp_client, &dns_client); |
| 140 | // let url = "http://worldtimeapi.org/api/timezone/Europe/Berlin"; | 140 | // let url = "http://worldtimeapi.org/api/timezone/Europe/Berlin"; |
| 141 | 141 | ||
| 142 | info!("connecting to {}", &url); | 142 | info!("connecting to {}", &url); |
