net: Support dual stack IP

This commit is contained in:
Ruben De Smet
2023-06-07 12:04:15 +02:00
parent ca47af6978
commit 352f0b6c38
19 changed files with 94 additions and 45 deletions

View File

@ -62,7 +62,7 @@ async fn main(spawner: Spawner) {
.await;
// Use a link-local address for communication without DHCP server
let config = Config::StaticV4(embassy_net::StaticConfigV4 {
let config = Config::ipv4_static(embassy_net::StaticConfigV4 {
address: embassy_net::Ipv4Cidr::new(embassy_net::Ipv4Address::new(169, 254, 1, 1), 16),
dns_servers: heapless::Vec::new(),
gateway: None,