1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:52:44 +01:00

examples/rust-gcoap: Add CoAP SAUL demo from module examples

This commit is contained in:
chrysn 2022-01-23 15:56:35 +01:00
parent 47b25c3595
commit 40efa06eb4
2 changed files with 5 additions and 0 deletions

View File

@ -19,9 +19,13 @@ USEMODULE += ztimer_usec
USEMODULE += ztimer_msec
USEMODULE += ztimer_sec
# for the "vfs" feature of riot-coap-handler-demos (and vfs.c)
USEMODULE += vfs
USEMODULE += constfs
# for the "saul" feature of riot-coap-handler-demos
USEMODULE += saul_default
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:

View File

@ -22,6 +22,7 @@ fn main() {
let handler = coap_message_demos::full_application_tree(None)
.below(&["ps"], riot_coap_handler_demos::ps::ps_tree())
.below(&["vfs"], riot_coap_handler_demos::vfs::vfs("/const"))
.below(&["saul"], riot_coap_handler_demos::saul::SaulHandler::new(&["saul"]))
.with_wkc()
;
let mut handler = riot_wrappers::coap_handler::GcoapHandler(handler);