Rename StaticConfig to StaticConfigV4

This commit is contained in:
Ruben De Smet
2023-06-05 14:57:17 +02:00
parent 44624b2d7a
commit 54bab33c73
19 changed files with 24 additions and 24 deletions

View File

@ -53,7 +53,7 @@ async fn main_task(spawner: Spawner) {
// Choose between dhcp or static ip
let config = if opts.static_ip {
Config::Static(embassy_net::StaticConfig {
Config::StaticV4(embassy_net::StaticConfigV4 {
address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 2), 24),
dns_servers: Vec::new(),
gateway: Some(Ipv4Address::new(192, 168, 69, 1)),