diff options
| author | Ruben De Smet <[email protected]> | 2023-06-05 14:57:17 +0200 |
|---|---|---|
| committer | Ruben De Smet <[email protected]> | 2023-06-06 17:04:21 +0200 |
| commit | 54bab33c7342510be538bc6d8545fe50146557cf (patch) | |
| tree | bafd49491fd9e40bc1a53b083c690406b1122899 /examples/std/src/bin/tcp_accept.rs | |
| parent | 44624b2d7a15ccc94971fc8d2091800f67821c58 (diff) | |
Rename StaticConfig to StaticConfigV4
Diffstat (limited to 'examples/std/src/bin/tcp_accept.rs')
| -rw-r--r-- | examples/std/src/bin/tcp_accept.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/std/src/bin/tcp_accept.rs b/examples/std/src/bin/tcp_accept.rs index 01695baea..4379d0439 100644 --- a/examples/std/src/bin/tcp_accept.rs +++ b/examples/std/src/bin/tcp_accept.rs | |||
| @@ -53,7 +53,7 @@ async fn main_task(spawner: Spawner) { | |||
| 53 | 53 | ||
| 54 | // Choose between dhcp or static ip | 54 | // Choose between dhcp or static ip |
| 55 | let config = if opts.static_ip { | 55 | let config = if opts.static_ip { |
| 56 | Config::Static(embassy_net::StaticConfig { | 56 | Config::StaticV4(embassy_net::StaticConfigV4 { |
| 57 | address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 2), 24), | 57 | address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 2), 24), |
| 58 | dns_servers: Vec::new(), | 58 | dns_servers: Vec::new(), |
| 59 | gateway: Some(Ipv4Address::new(192, 168, 69, 1)), | 59 | gateway: Some(Ipv4Address::new(192, 168, 69, 1)), |
