Function coap_run
pub async fn coap_run(handler: impl Handler + Reporting) -> !
Available on crate features
coap
and coap-server
only.Expand description
Runs a CoAP server with the given handler on the system’s CoAP transports.
As the CoAP stack gets ready, it also unblocks coap_client
.
§Panics
This can only be run once, as it sets up a system wide CoAP handler.