Update to rust-lorawan with afit support
This commit is contained in:
committed by
Dario Nieuwenhuis
parent
224eaaf797
commit
63941432e3
@@ -45,7 +45,7 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
let radio = Sx127xRadio::new(spi, cs, reset, ready_pin, DummySwitch).await.unwrap();
|
||||
|
||||
let region = region::EU868::default().into();
|
||||
let region = region::Configuration::new(region::Region::EU868);
|
||||
let mut device: Device<_, Crypto, _, _> = Device::new(region, radio, LoraTimer::new(), Rng::new(p.RNG));
|
||||
|
||||
defmt::info!("Joining LoRaWAN network");
|
||||
|
Reference in New Issue
Block a user