Skip to content

Commit

Permalink
[nrf noup] samples: lwm2m_client: Add support for nRF91x
Browse files Browse the repository at this point in the history
Add support for nRF91x by providing overlay configuration file.

Signed-off-by: Juha Ylinen <[email protected]>
Signed-off-by: Robert Lubos <[email protected]>
(cherry picked from commit d96769f)
(cherry picked from commit 13fd467)
  • Loading branch information
juhaylinen authored and rlubos committed Oct 16, 2024
1 parent 3abc0e2 commit 1ee6611
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions samples/net/lwm2m_client/overlay-nrf91x.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Configuration file for nRF91x
# This file is merged with prj.conf in the application folder, and options
# set here will take precedence if they are present in both files.

# General
CONFIG_MAIN_STACK_SIZE=4096

CONFIG_NET_SOCKETS=y
CONFIG_NET_NATIVE=y
CONFIG_NET_SOCKETS_OFFLOAD=y

CONFIG_NET_CONFIG_MY_IPV6_ADDR=""
CONFIG_NET_CONFIG_PEER_IPV6_ADDR=""
CONFIG_NET_CONFIG_MY_IPV4_ADDR=""
CONFIG_NET_CONFIG_MY_IPV4_GW=""

CONFIG_NET_CONFIG_NEED_IPV6=n
CONFIG_NET_CONFIG_NEED_IPV4=n
CONFIG_NET_CONFIG_AUTO_INIT=n

# Modem related configurations
CONFIG_NRF_MODEM_LIB_NET_IF=y
CONFIG_NRF_MODEM_LIB_NET_IF_AUTO_DOWN=n
CONFIG_NRF_MODEM_LIB_NET_IF_AUTO_CONNECT=n
CONFIG_NRF_MODEM_LIB_NET_IF_AUTO_START=n
CONFIG_NRF_MODEM_LIB_ON_FAULT_APPLICATION_SPECIFIC=y

CONFIG_LTE_LINK_CONTROL_LOG_LEVEL_DBG=n
CONFIG_NRF_MODEM_LIB_NET_IF_LOG_LEVEL_DBG=n

# Disable Duplicate Address Detection (DAD)
# due to not being properly implemented for offloaded interfaces.
CONFIG_NET_IPV6_NBR_CACHE=n
CONFIG_NET_IPV6_MLD=n

# Zephyr NET Connection Manager and Connectivity layer.
CONFIG_NET_CONNECTION_MANAGER=y
CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=1024

CONFIG_LWM2M_APP_ID="nrf91x"
CONFIG_LWM2M_APP_SERVER="coaps://leshan.eclipseprojects.io:5684"
CONFIG_LWM2M_DNS_SUPPORT=y

## Enable DTLS support
CONFIG_LWM2M_DTLS_SUPPORT=y
CONFIG_LWM2M_TLS_SESSION_CACHING=y
CONFIG_LWM2M_DTLS_CID=y
CONFIG_TLS_CREDENTIALS=y

## Crypto
CONFIG_OBERON_BACKEND=y
CONFIG_NORDIC_SECURITY_BACKEND=y
CONFIG_MBEDTLS_SHA256_C=y

0 comments on commit 1ee6611

Please sign in to comment.