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

Merge pull request #17704 from chrysn-pull-requests/rust-wrappers-update

{examples,tests}/rust: cargo update and deprecation fixes
This commit is contained in:
chrysn 2022-02-25 14:30:36 +01:00 committed by GitHub
commit 039e9937a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -12,5 +12,5 @@ crate-type = ["staticlib"]
riot-wrappers = { version = "^0.7", features = [ "with_coap_message", "with_coap_handler" ] }
coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false }
coap-handler-implementations = "0.1"
coap-handler-implementations = "0.3"
riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs" ] }

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);
}
}

Binary file not shown.

Binary file not shown.