aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf52840/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-07-05 19:16:45 +0200
committerDario Nieuwenhuis <[email protected]>2023-07-05 19:20:49 +0200
commita42ac86f1b71700632b77196ad506587774ae976 (patch)
tree220cf7195f05ee8ad4b9956ac3539c6e56d7c405 /examples/nrf52840/src
parentc6cd69887c64e22575442359040a890f32719295 (diff)
Remove wifi envvars. They're annoying, they cause rust-analyzer errors when opening the examples.
Diffstat (limited to 'examples/nrf52840/src')
-rw-r--r--examples/nrf52840/src/bin/wifi_esp_hosted.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/nrf52840/src/bin/wifi_esp_hosted.rs b/examples/nrf52840/src/bin/wifi_esp_hosted.rs
index f7496703c..112e41bcd 100644
--- a/examples/nrf52840/src/bin/wifi_esp_hosted.rs
+++ b/examples/nrf52840/src/bin/wifi_esp_hosted.rs
@@ -16,6 +16,9 @@ use embedded_io::asynch::Write;
16use static_cell::make_static; 16use static_cell::make_static;
17use {defmt_rtt as _, embassy_net_esp_hosted as hosted, panic_probe as _}; 17use {defmt_rtt as _, embassy_net_esp_hosted as hosted, panic_probe as _};
18 18
19const WIFI_NETWORK: &str = "EmbassyTest";
20const WIFI_PASSWORD: &str = "V8YxhKt5CdIAJFud";
21
19bind_interrupts!(struct Irqs { 22bind_interrupts!(struct Irqs {
20 SPIM3 => spim::InterruptHandler<peripherals::SPI3>; 23 SPIM3 => spim::InterruptHandler<peripherals::SPI3>;
21 RNG => embassy_nrf::rng::InterruptHandler<peripherals::RNG>; 24 RNG => embassy_nrf::rng::InterruptHandler<peripherals::RNG>;
@@ -70,7 +73,7 @@ async fn main(spawner: Spawner) {
70 unwrap!(spawner.spawn(wifi_task(runner))); 73 unwrap!(spawner.spawn(wifi_task(runner)));
71 74
72 control.init().await; 75 control.init().await;
73 control.join(env!("WIFI_NETWORK"), env!("WIFI_PASSWORD")).await; 76 control.join(WIFI_NETWORK, WIFI_PASSWORD).await;
74 77
75 let config = embassy_net::Config::dhcpv4(Default::default()); 78 let config = embassy_net::Config::dhcpv4(Default::default());
76 // let config = embassy_net::Config::ipv4_static(embassy_net::StaticConfigV4 { 79 // let config = embassy_net::Config::ipv4_static(embassy_net::StaticConfigV4 {