pub unsafe extern "C" fn otCoapSendResponseWithParameters(
aInstance: *mut otInstance,
aMessage: *mut otMessage,
aMessageInfo: *const otMessageInfo,
aTxParameters: *const otCoapTxParameters,
) -> otError
Expand description
Sends a CoAP response from the server with custom transmission parameters.
@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. @param[in] aTxParameters A pointer to transmission parameters for this response. Use NULL for defaults.
@retval OT_ERROR_NONE Successfully enqueued the CoAP response message. @retval OT_ERROR_NO_BUFS Insufficient buffers available to send the CoAP response. @retval OT_ERROR_INVALID_ARGS Invalid arguments are given.