pub fn vfs(root: &'static str) -> impl Handler + Reporting
Available on crate feature
vfs
only.Expand description
Build a handler that will serve a subtree of the file system
Note that this handles a whole subtree, so it’s better placed as .below(&["vfs"], riot_coap_handler_demos::vfs::vfs(""))
(or "/sda1"
) rather than using .at()
in a
coap_handler_implementations::HandlerBuilder.