aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2022-04-08 12:58:57 +0200
committerUlf Lilleengen <[email protected]>2022-04-08 12:58:57 +0200
commit86e52e67d0334159150689e4df4e38a7622fcddb (patch)
treef503c6180b62da4fdb3cc6f98681dbd725b986f1 /examples
parent3e45403a2a40399b2798feeea1266f0cd61f21c4 (diff)
Update to latest rust-lorawan version
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32l0/Cargo.toml4
-rw-r--r--examples/stm32l0/src/bin/lorawan.rs10
-rw-r--r--examples/stm32wl/Cargo.toml4
-rw-r--r--examples/stm32wl/src/bin/lorawan.rs10
4 files changed, 8 insertions, 20 deletions
diff --git a/examples/stm32l0/Cargo.toml b/examples/stm32l0/Cargo.toml
index 8063e6c7e..a8850677d 100644
--- a/examples/stm32l0/Cargo.toml
+++ b/examples/stm32l0/Cargo.toml
@@ -15,8 +15,8 @@ embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["
15 15
16embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["sx127x", "time", "defmt"], optional = true} 16embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["sx127x", "time", "defmt"], optional = true}
17 17
18lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "0de1a2a31933f7c97887b5718c1755fa5ab93a42", default-features = false, features = ["async"], optional = true } 18lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "607d7ee4917e26998b5f130304becde969b6b434", default-features = false, features = ["async"], optional = true }
19lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "0de1a2a31933f7c97887b5718c1755fa5ab93a42", default-features = false, features = ["default-crypto"], optional = true } 19lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "607d7ee4917e26998b5f130304becde969b6b434", default-features = false, features = ["default-crypto"], optional = true }
20 20
21defmt = "0.3" 21defmt = "0.3"
22defmt-rtt = "0.3" 22defmt-rtt = "0.3"
diff --git a/examples/stm32l0/src/bin/lorawan.rs b/examples/stm32l0/src/bin/lorawan.rs
index 22304f8e5..93cdd1c9f 100644
--- a/examples/stm32l0/src/bin/lorawan.rs
+++ b/examples/stm32l0/src/bin/lorawan.rs
@@ -54,14 +54,8 @@ async fn main(_spawner: embassy::executor::Spawner, p: Peripherals) {
54 .unwrap(); 54 .unwrap();
55 55
56 let region = region::EU868::default().into(); 56 let region = region::EU868::default().into();
57 let mut radio_buffer = [0; 256]; 57 let mut device: Device<_, Crypto, _, _> =
58 let mut device: Device<'_, _, Crypto, _, _> = Device::new( 58 Device::new(region, radio, LoraTimer, Rng::new(p.RNG));
59 region,
60 radio,
61 LoraTimer,
62 Rng::new(p.RNG),
63 &mut radio_buffer[..],
64 );
65 59
66 defmt::info!("Joining LoRaWAN network"); 60 defmt::info!("Joining LoRaWAN network");
67 61
diff --git a/examples/stm32wl/Cargo.toml b/examples/stm32wl/Cargo.toml
index e95a009ce..1c2242f30 100644
--- a/examples/stm32wl/Cargo.toml
+++ b/examples/stm32wl/Cargo.toml
@@ -10,8 +10,8 @@ embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "def
10embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32wl55jc-cm4", "time-driver-any", "memory-x", "subghz", "unstable-pac", "exti"] } 10embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32wl55jc-cm4", "time-driver-any", "memory-x", "subghz", "unstable-pac", "exti"] }
11embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["stm32wl", "time"] } 11embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["stm32wl", "time"] }
12 12
13lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "0de1a2a31933f7c97887b5718c1755fa5ab93a42", default-features = false, features = ["async"] } 13lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "607d7ee4917e26998b5f130304becde969b6b434", default-features = false, features = ["async"] }
14lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "0de1a2a31933f7c97887b5718c1755fa5ab93a42", default-features = false, features = ["default-crypto"] } 14lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "607d7ee4917e26998b5f130304becde969b6b434", default-features = false, features = ["default-crypto"] }
15 15
16defmt = "0.3" 16defmt = "0.3"
17defmt-rtt = "0.3" 17defmt-rtt = "0.3"
diff --git a/examples/stm32wl/src/bin/lorawan.rs b/examples/stm32wl/src/bin/lorawan.rs
index db4725630..2e3221fcc 100644
--- a/examples/stm32wl/src/bin/lorawan.rs
+++ b/examples/stm32wl/src/bin/lorawan.rs
@@ -43,14 +43,8 @@ async fn main(_spawner: embassy::executor::Spawner, p: Peripherals) {
43 let radio = unsafe { SubGhzRadio::new(&mut RADIO_STATE, radio, rfs, irq) }; 43 let radio = unsafe { SubGhzRadio::new(&mut RADIO_STATE, radio, rfs, irq) };
44 44
45 let region = region::EU868::default().into(); 45 let region = region::EU868::default().into();
46 let mut radio_buffer = [0; 256]; 46 let mut device: Device<_, Crypto, _, _> =
47 let mut device: Device<'_, _, Crypto, _, _> = Device::new( 47 Device::new(region, radio, LoraTimer, Rng::new(p.RNG));
48 region,
49 radio,
50 LoraTimer,
51 Rng::new(p.RNG),
52 &mut radio_buffer[..],
53 );
54 48
55 defmt::info!("Joining LoRaWAN network"); 49 defmt::info!("Joining LoRaWAN network");
56 50