Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Jul 17, 2024
1 parent 081dbca commit 9c39af6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/sync_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use esp_wifi::{
};
use hal::{
clock::ClockControl, peripherals::Peripherals, prelude::*, rng::Rng, system::SystemControl,
timer::PeriodicTimer,
};
use smoltcp::{iface::SocketStorage, wire::IpAddress};

Expand All @@ -39,7 +40,7 @@ fn main() -> ! {
let timer = esp_hal::timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0;
let init = initialize(
EspWifiInitFor::Wifi,
timer,
PeriodicTimer::new(timer.into()),
Rng::new(peripherals.RNG),
peripherals.RADIO_CLK,
&clocks,
Expand Down
3 changes: 2 additions & 1 deletion examples/sync_client_mTLS.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use esp_wifi::{
};
use hal::{
clock::ClockControl, peripherals::Peripherals, prelude::*, rng::Rng, system::SystemControl,
timer::PeriodicTimer,
};
use smoltcp::{iface::SocketStorage, wire::IpAddress};

Expand All @@ -39,7 +40,7 @@ fn main() -> ! {
let timer = esp_hal::timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0;
let init = initialize(
EspWifiInitFor::Wifi,
timer,
PeriodicTimer::new(timer.into()),
Rng::new(peripherals.RNG),
peripherals.RADIO_CLK,
&clocks,
Expand Down
3 changes: 2 additions & 1 deletion examples/sync_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ use esp_wifi::{
};
use hal::{
clock::ClockControl, peripherals::Peripherals, prelude::*, rng::Rng, system::SystemControl,
timer::PeriodicTimer,
};
use smoltcp::iface::SocketStorage;

Expand All @@ -42,7 +43,7 @@ fn main() -> ! {
let timer = esp_hal::timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0;
let init = initialize(
EspWifiInitFor::Wifi,
timer,
PeriodicTimer::new(timer.into()),
Rng::new(peripherals.RNG),
peripherals.RADIO_CLK,
&clocks,
Expand Down
3 changes: 2 additions & 1 deletion examples/sync_server_mTLS.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use esp_wifi::{
};
use hal::{
clock::ClockControl, peripherals::Peripherals, prelude::*, rng::Rng, system::SystemControl,
timer::PeriodicTimer,
};
use smoltcp::iface::SocketStorage;

Expand All @@ -59,7 +60,7 @@ fn main() -> ! {
let timer = esp_hal::timer::systimer::SystemTimer::new(peripherals.SYSTIMER).alarm0;
let init = initialize(
EspWifiInitFor::Wifi,
timer,
PeriodicTimer::new(timer.into()),
Rng::new(peripherals.RNG),
peripherals.RADIO_CLK,
&clocks,
Expand Down

0 comments on commit 9c39af6

Please sign in to comment.