# otCoapBlockwiseResource Struct Reference

# otCoapBlockwiseResource


`#include <openthread/coap.h>`

Represents a CoAP resource with block-wise transfer.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-coap-blockwise-resource#structot_coap_blockwise_resource_1ade33028d46d829258fbe5ee406557010` | `void *` Application-specific context. |
| `https://openthread.io/reference/struct/ot-coap-blockwise-resource#structot_coap_blockwise_resource_1aa04c0dfb288c7fc18c9bb0f3f0ffffa4` | `https://openthread.io/reference/group/api-coap#group__api-coap_1ga43485a1c168a672b36d35f4c6259dbea` The callback for handling a received request. |
| `https://openthread.io/reference/struct/ot-coap-blockwise-resource#structot_coap_blockwise_resource_1ab080ee2ec4574424a0bc182acf02988f` | `struct https://openthread.io/reference/struct/ot-coap-blockwise-resource *` The next CoAP resource in the list. |
| `https://openthread.io/reference/struct/ot-coap-blockwise-resource#structot_coap_blockwise_resource_1a84da4ec1775fab94bf0141da0401ab17` | `https://openthread.io/reference/group/api-coap#group__api-coap_1ga0c640fe414553134e76899bad13e7242` The callback for handling incoming block-wise transfer. |
| `https://openthread.io/reference/struct/ot-coap-blockwise-resource#structot_coap_blockwise_resource_1a676fbbfaf1da71f98567ae9efd79dd2d` | `https://openthread.io/reference/group/api-coap#group__api-coap_1gaff785a9a39107f9447d5c183ab04aa6a` The callback for handling outgoing block-wise transfer. |
| `https://openthread.io/reference/struct/ot-coap-blockwise-resource#structot_coap_blockwise_resource_1a7c07354a8d162cc60f46074440a2babe` | `const char *` The URI Path string. |

## Public attributes

### mContext

```
void * otCoapBlockwiseResource::mContext
```
Application-specific context.

### mHandler

```
otCoapRequestHandler otCoapBlockwiseResource::mHandler
```
The callback for handling a received request.

### mNext

```
struct otCoapBlockwiseResource * otCoapBlockwiseResource::mNext
```
The next CoAP resource in the list.

### mReceiveHook

```
otCoapBlockwiseReceiveHook otCoapBlockwiseResource::mReceiveHook
```
The callback for handling incoming block-wise transfer.

This callback is available when OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE configuration is enabled.

### mTransmitHook

```
otCoapBlockwiseTransmitHook otCoapBlockwiseResource::mTransmitHook
```
The callback for handling outgoing block-wise transfer.

This callback is available when OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE configuration is enabled.

### mUriPath

```
const char * otCoapBlockwiseResource::mUriPath
```
The URI Path string.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).