-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] samples: lwm2m_client: Add support for nRF91x and nRF700x
Add support for nRF91x and nRF700x by providing overlay configuration files. Signed-off-by: Juha Ylinen <[email protected]> (cherry picked from commit 6d99243)
- Loading branch information
1 parent
c749f7a
commit d96769f
Showing
2 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# General | ||
CONFIG_MAIN_STACK_SIZE=4096 | ||
CONFIG_ENTROPY_GENERATOR=y | ||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096 | ||
|
||
# Wi-Fi | ||
CONFIG_WIFI=y | ||
CONFIG_WIFI_NRF700X=y | ||
CONFIG_WIFI_MGMT_EXT=y | ||
CONFIG_NRF_WIFI_IF_AUTO_START=n | ||
|
||
# Credentials | ||
CONFIG_WIFI_CREDENTIALS=y | ||
CONFIG_WIFI_CREDENTIALS_STATIC=y | ||
CONFIG_WIFI_CREDENTIALS_STATIC_SSID="" | ||
CONFIG_WIFI_CREDENTIALS_STATIC_PASSWORD="" | ||
|
||
# WPA | ||
CONFIG_WPA_SUPP=y | ||
CONFIG_WPA_SUPP_LOG_LEVEL_ERR=y | ||
|
||
CONFIG_NET_NATIVE=y | ||
CONFIG_NET_L2_ETHERNET=y | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_SOCKETS=y | ||
CONFIG_NET_SOCKETS_OFFLOAD=n | ||
CONFIG_NET_BUF_RX_COUNT=18 | ||
CONFIG_NET_BUF_TX_COUNT=18 | ||
CONFIG_NET_DEFAULT_IF_WIFI=y | ||
|
||
# DNS | ||
CONFIG_DNS_RESOLVER=y | ||
|
||
# DHCPv4 | ||
CONFIG_NET_DHCPV4=y | ||
CONFIG_NET_CONFIG_AUTO_INIT=n | ||
CONFIG_NET_CONFIG_NEED_IPV6=n | ||
CONFIG_NET_CONFIG_NEED_IPV4=n | ||
|
||
# Connection manager | ||
CONFIG_NET_CONNECTION_MANAGER=y | ||
|
||
# Zephyr NET Connection Manager Connectivity layer. | ||
CONFIG_L2_WIFI_CONNECTIVITY=y | ||
CONFIG_L2_WIFI_CONNECTIVITY_AUTO_DOWN=n | ||
CONFIG_L2_WIFI_CONNECTIVITY_AUTO_CONNECT=n | ||
|
||
CONFIG_LWM2M_APP_ID="nrf700x" | ||
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 | ||
|
||
# TLS networking | ||
CONFIG_NET_SOCKETS_ENABLE_DTLS=y | ||
CONFIG_NET_SOCKETS_TLS_MAX_CONTEXTS=4 | ||
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y | ||
|
||
# nRF Security | ||
CONFIG_NRF_SECURITY=y | ||
|
||
# mbedTLS | ||
CONFIG_MBEDTLS=y | ||
CONFIG_MBEDTLS_ENABLE_HEAP=y | ||
CONFIG_MBEDTLS_HEAP_SIZE=120000 | ||
CONFIG_MBEDTLS_RSA_C=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |