CoAP

This module includes configuration variables for CoAP.

Summary

Macros

OPENTHREAD_CONFIG_COAP_API_ENABLE 0
Define to 1 to enable the CoAP API.
OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE 0
Define to 1 to enable the CoAP Block-Wise Transfer.
OPENTHREAD_CONFIG_COAP_MAX_BLOCK_LENGTH 1024
This setting configures the maximum length of one block during a CoAP Block-Wise Transfer.
OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE 0
Define to 1 to enable the CoAP Observe (RFC7641) API.
OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE 0
Define to 1 to enable the CoAP Secure API.
OPENTHREAD_CONFIG_COAP_SERVER_MAX_CACHED_RESPONSES 10
Maximum number of cached responses for CoAP Confirmable messages.

Macros

OPENTHREAD_CONFIG_COAP_API_ENABLE

 OPENTHREAD_CONFIG_COAP_API_ENABLE 0

Define to 1 to enable the CoAP API.

OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE

 OPENTHREAD_CONFIG_COAP_BLOCKWISE_TRANSFER_ENABLE 0

Define to 1 to enable the CoAP Block-Wise Transfer.

OPENTHREAD_CONFIG_COAP_MAX_BLOCK_LENGTH

 OPENTHREAD_CONFIG_COAP_MAX_BLOCK_LENGTH 1024

This setting configures the maximum length of one block during a CoAP Block-Wise Transfer.

OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE

 OPENTHREAD_CONFIG_COAP_OBSERVE_API_ENABLE 0

Define to 1 to enable the CoAP Observe (RFC7641) API.

OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE

 OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE 0

Define to 1 to enable the CoAP Secure API.

OPENTHREAD_CONFIG_COAP_SERVER_MAX_CACHED_RESPONSES

 OPENTHREAD_CONFIG_COAP_SERVER_MAX_CACHED_RESPONSES 10

Maximum number of cached responses for CoAP Confirmable messages.

Cached responses are used for message deduplication.

Resources

OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.