mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:52:44 +01:00
examples/rust-gcoap: Add CoAP SAUL demo from module examples
This commit is contained in:
parent
47b25c3595
commit
40efa06eb4
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user