The CoAP samples use an MBEDTLS config "config-coap.h" which could be re-used by the LwM2M sample, except that most servers use a larger maximum content length setting of 1500 bytes. Let's add a CONFIG to set this for users of the CoAP lib and set the CONFIG value for the samples to the 256 size currently used. Signed-off-by: Michael Scott <michael@opensourcefoundries.com>
29 lines
674 B
Plaintext
29 lines
674 B
Plaintext
CONFIG_NETWORKING=y
|
|
CONFIG_NET_IPV6=y
|
|
CONFIG_NET_IPV4=n
|
|
CONFIG_NET_UDP=y
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
CONFIG_NET_LOG=y
|
|
CONFIG_SYS_LOG_SHOW_COLOR=y
|
|
CONFIG_INIT_STACKS=y
|
|
CONFIG_PRINTK=y
|
|
CONFIG_NET_STATISTICS=y
|
|
CONFIG_NET_PKT_RX_COUNT=14
|
|
CONFIG_NET_PKT_TX_COUNT=14
|
|
CONFIG_NET_BUF_RX_COUNT=30
|
|
CONFIG_NET_BUF_TX_COUNT=30
|
|
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3
|
|
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5
|
|
CONFIG_NET_MAX_CONTEXTS=10
|
|
|
|
CONFIG_COAP=y
|
|
CONFIG_COAP_MBEDTLS_SSL_MAX_CONTENT_LEN=256
|
|
|
|
CONFIG_MBEDTLS=y
|
|
CONFIG_MBEDTLS_BUILTIN=y
|
|
CONFIG_MBEDTLS_CFG_FILE="config-coap.h"
|
|
|
|
CONFIG_NET_APP_SETTINGS=y
|
|
CONFIG_NET_APP_MY_IPV6_ADDR="2001:db8::1"
|
|
CONFIG_NET_APP_MY_IPV4_ADDR="192.0.2.1"
|