pub unsafe extern "C" fn nanocoap_server_prepare_separate(
ctx: *mut nanocoap_server_response_ctx_t,
pkt: *mut coap_pkt_t,
req: *const coap_request_ctx_t,
)
Expand description
@brief Prepare the context for a separate response
This function serializes the CoAP request information so that a separate response can be generated outside the CoAP handler.
The CoAP handler should then respond with an empty ACK by calling @ref coap_build_empty_ack
@param[out] ctx Context information for separate response @param[in] pkt CoAP packet to which the response will be generated @param[in] req Context of the CoAP request