pub unsafe extern "C" fn otCoapSecureSendResponseBlockWise(
aInstance: *mut otInstance,
aMessage: *mut otMessage,
aMessageInfo: *const otMessageInfo,
aContext: *mut c_void,
aTransmitHook: otCoapBlockwiseTransmitHook,
) -> otError
Expand description
Sends a CoAP response block-wise from the CoAP Secure server.
Is available when OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE configuration is enabled.
@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] aContext A pointer to arbitrary context information. May be NULL if not used. @param[in] aTransmitHook A function pointer that is called on Block1 request reception.
@retval OT_ERROR_NONE Successfully enqueued the CoAP response message. @retval OT_ERROR_NO_BUFS Insufficient buffers available to send the CoAP response.