diff --git a/examples/platforms/efr32/src/mbedtls_config.h b/examples/platforms/efr32/src/mbedtls_config.h index c56ab3bb7..c9035a6c1 100644 --- a/examples/platforms/efr32/src/mbedtls_config.h +++ b/examples/platforms/efr32/src/mbedtls_config.h @@ -14,7 +14,11 @@ // Default: 768 // The size configured here determines the size of each of the two // internal I/O buffers used in mbedTLS when sending and receiving data. -#define MBEDTLS_SSL_MAX_CONTENT_LEN 768 +#if OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE +#define MBEDTLS_SSL_MAX_CONTENT_LEN 900 /**< Maximum fragment length in bytes */ +#else +#define MBEDTLS_SSL_MAX_CONTENT_LEN 768 /**< Maximum fragment length in bytes */ +#endif // Enable support for RFC 6066 max_fragment_length extension in SSL. // Default: 1