mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
rustfmt
This commit is contained in:
parent
6dae3c02c0
commit
b927c22ac0
@ -95,7 +95,7 @@ async fn main(spawner: Spawner) {
|
|||||||
unwrap!(spawner.spawn(net_task(stack)));
|
unwrap!(spawner.spawn(net_task(stack)));
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
//match control.join_open(WIFI_NETWORK).await { // for open networks
|
//match control.join_open(WIFI_NETWORK).await { // for open networks
|
||||||
match control.join_wpa2(WIFI_NETWORK, WIFI_PASSWORD).await {
|
match control.join_wpa2(WIFI_NETWORK, WIFI_PASSWORD).await {
|
||||||
Ok(_) => break,
|
Ok(_) => break,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
@ -136,7 +136,7 @@ async fn main(spawner: Spawner) {
|
|||||||
let mut http_client = HttpClient::new_with_tls(&tcp_client, &dns_client, tls_config);
|
let mut http_client = HttpClient::new_with_tls(&tcp_client, &dns_client, tls_config);
|
||||||
let url = "https://worldtimeapi.org/api/timezone/Europe/Berlin";
|
let url = "https://worldtimeapi.org/api/timezone/Europe/Berlin";
|
||||||
// for non-TLS requests, use this instead:
|
// for non-TLS requests, use this instead:
|
||||||
// let mut http_client = HttpClient::new(&tcp_client, &dns_client);
|
// let mut http_client = HttpClient::new(&tcp_client, &dns_client);
|
||||||
// let url = "http://worldtimeapi.org/api/timezone/Europe/Berlin";
|
// let url = "http://worldtimeapi.org/api/timezone/Europe/Berlin";
|
||||||
|
|
||||||
info!("connecting to {}", &url);
|
info!("connecting to {}", &url);
|
||||||
|
Loading…
Reference in New Issue
Block a user