FactbirdHQ / ublox-short-range-rs

A driver crate for the entire u-blox short range family in Rust
6 stars 2 forks source link

Fix: TCP peer connect using domain name instead of ip. #64

Closed KennethKnudsen97 closed 1 year ago

KennethKnudsen97 commented 1 year ago

Because embedded-nal TcpClientStack connect function only takes in SocketAddr we can't connect with the domain name. To fix this we have created a DNS table. When we use the TCP connect function we look up the IP address in the DNS-table to get the domain name.