Function riot_coap_handler_demos::stdio::read
source · pub fn read() -> impl Handler
Expand description
A resource that, when POSTed to, reads up to whichever internally decided buffer length from stdin
§Warning
This is not only an unusual implementation of Handler (as is [write]; here, lack of the retranmission buffering associated with deduplication leads to lost input), but also a bad implementation of Handler as it blocks arbitrarily (making it even more likely that retransmissions occur).