net: do not use smoltcp Instant/Duration in public API.

This commit is contained in:
Dario Nieuwenhuis
2023-05-15 00:38:58 +02:00
parent 6e93d193cf
commit 26d7610554
11 changed files with 41 additions and 26 deletions

View File

@ -91,7 +91,7 @@ async fn main(spawner: Spawner) -> ! {
loop {
let mut socket = TcpSocket::new(&stack, &mut rx_buffer, &mut tx_buffer);
socket.set_timeout(Some(embassy_net::SmolDuration::from_secs(10)));
socket.set_timeout(Some(embassy_time::Duration::from_secs(10)));
let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000);
info!("connecting...");