Skip to content

Commit

Permalink
examples/rust-coap: Update to coap-handler 0.2 based implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jan 27, 2024
1 parent 3c5a540 commit 6231c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/rust-gcoap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ opt-level = "s"
riot-wrappers = { version = "^0.8", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }

coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false }
coap-handler-implementations = "0.4"
coap-handler-implementations = "0.5"
riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs" ] }

# While currently this exmple does not use any RIOT modules implemented in
Expand Down
2 changes: 1 addition & 1 deletion examples/rust-gcoap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() {
.below(&["vfs"], riot_coap_handler_demos::vfs::vfs("/const"))
.with_wkc()
;
let mut handler = riot_wrappers::coap_handler::GcoapHandler(handler);
let mut handler = riot_wrappers::coap_handler::v0_2::GcoapHandler(handler);

let mut listener = gcoap::SingleHandlerListener::new_catch_all(&mut handler);

Expand Down

0 comments on commit 6231c58

Please sign in to comment.