riot_coap_handler_demos::stdio

Function write

Source
pub fn write() -> impl Handler
Available on crate feature riot-wrappers only.
Expand description

A resource that, when POSTed to, renders any payload to standard out

This is an unusual implementation of Handler in that it requires request deduplication from the underlying implementation. (Failing that, messages may be printed twice).