Function riot_coap_handler_demos::ping::ping_tree

source ยท
pub fn ping_tree<'a>(pings: &'a PingPool) -> impl Handler + Reporting + 'a
Available on crate feature ping only.
Expand description

A resource tree representing a set of launchable pings.

See PingPool documentation on what else needs to be done with this besides being registered in a CoAP handler.

Caveat: Due to shortcomings of the Handler trait and/or the tree building, this should really be .below(&["ping"], ...), for the /ping/ prefix is hardcoded in the Location-Path responses.