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:
parent
433d7ba2a5
commit
9503809f56
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user