Skip to main content

otCoapSendResponse

Function otCoapSendResponse 

Source
pub unsafe extern "C" fn otCoapSendResponse(
    aInstance: *mut otInstance,
    aMessage: *mut otMessage,
    aMessageInfo: *const otMessageInfo,
) -> otError
Expand description

Sends a CoAP response from the server.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aMessage A pointer to the CoAP response to send. @param[in] aMessageInfo A pointer to the message info associated with @p aMessage.

@retval OT_ERROR_NONE Successfully enqueued the CoAP response message. @retval OT_ERROR_NO_BUFS Insufficient buffers available to send the CoAP response.