1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/rust-gcoap: Follow renames / deprecations of riot-wrappers

This commit is contained in:
chrysn 2022-02-25 13:11:57 +01:00
parent 433d7ba2a5
commit 9503809f56

View File

@ -33,14 +33,14 @@ fn main() {
println!("CoAP server ready; waiting for interfaces to settle before reporting addresses...");
let sectimer = ztimer::ZTimer::sec();
let sectimer = ztimer::Clock::sec();
sectimer.sleep_ticks(2);
for netif in gnrc::Netif::all() {
println!("Active interface from PID {:?} ({:?})", netif.pid(), netif.pid().get_name().unwrap_or("unnamed"));
match netif.ipv6_addrs() {
Ok(addrs) => {
for a in addrs.addresses() {
for a in &addrs {
println!(" Address {:?}", a);
}
}