60 lines
1.0 KiB
Plaintext
60 lines
1.0 KiB
Plaintext
# Enable network stack
|
|
CONFIG_NETWORKING=y
|
|
CONFIG_NET_LOG=y
|
|
|
|
# Enable IPv4
|
|
CONFIG_NET_IPV4=y
|
|
|
|
# Enable IPv6
|
|
CONFIG_NET_IPV6=y
|
|
|
|
# Enable TCP
|
|
CONFIG_NET_TCP=y
|
|
|
|
# Enable DHCP
|
|
CONFIG_NET_DHCPV4=y
|
|
|
|
# Enable Sockets (used by MQTT lib)
|
|
CONFIG_NET_SOCKETS=y
|
|
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y
|
|
|
|
# Enable MQTT
|
|
CONFIG_MQTT_LIB=y
|
|
CONFIG_MQTT_LIB_TLS=y
|
|
|
|
# Enable Mbed TLS
|
|
CONFIG_MBEDTLS=y
|
|
CONFIG_MBEDTLS_BUILTIN=y
|
|
CONFIG_MBEDTLS_ENABLE_HEAP=y
|
|
CONFIG_MBEDTLS_HEAP_SIZE=60000
|
|
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384
|
|
CONFIG_MBEDTLS_PEM_CERTIFICATE_FORMAT=y
|
|
CONFIG_MBEDTLS_SERVER_NAME_INDICATION=y
|
|
|
|
# Enable JSON
|
|
CONFIG_JSON_LIBRARY=y
|
|
|
|
# Enable net conn manager
|
|
CONFIG_NET_CONNECTION_MANAGER=y
|
|
|
|
# Enable device hostname
|
|
CONFIG_NET_HOSTNAME_ENABLE=y
|
|
|
|
# Enable Posix API functionality
|
|
CONFIG_POSIX_API=y
|
|
|
|
# Enable sensor API
|
|
CONFIG_SENSOR=y
|
|
|
|
# Enable LED API
|
|
CONFIG_LED=y
|
|
|
|
# Main stack size
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
|
|
|
# System work queue stack size
|
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
|
|
|
|
# Increase Rx net buffers
|
|
CONFIG_NET_BUF_RX_COUNT=100
|