mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 10:12:45 +01:00
examples/rust-coap: Update to coap-handler 0.2 based implementations
This commit is contained in:
parent
3c5a540d01
commit
6231c58fdb
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user