pub unsafe extern "C" fn otCoapSecureSendRequestBlockWise(
aInstance: *mut otInstance,
aMessage: *mut otMessage,
aHandler: otCoapResponseHandler,
aContext: *mut c_void,
aTransmitHook: otCoapBlockwiseTransmitHook,
aReceiveHook: otCoapBlockwiseReceiveHook,
) -> otError
Expand description
Sends a CoAP request block-wise over secure DTLS connection.
Is available when OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE configuration is enabled.
If a response for a request is expected, respective function and context information should be provided. If no response is expected, these arguments should be NULL pointers. If Message Id was not set in the header (equal to 0), this function will assign unique Message Id to the message.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aMessage A reference to the message to send. @param[in] aHandler A function pointer that shall be called on response reception or time-out. @param[in] aContext A pointer to arbitrary context information. @param[in] aTransmitHook A function pointer that is called on Block1 response reception. @param[in] aReceiveHook A function pointer that is called on Block2 response reception.
@retval OT_ERROR_NONE Successfully sent CoAP message. @retval OT_ERROR_NO_BUFS Failed to allocate retransmission data. @retval OT_ERROR_INVALID_STATE DTLS connection was not initialized.