Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions samples/net/lwm2m_client/prj_frdm_k64f.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ CONFIG_NET_CONTEXT_NET_PKT_POOL=y

CONFIG_NET_SHELL=y

CONFIG_NET_APP=y
CONFIG_NET_APP_NEED_IPV6=y
CONFIG_NET_APP_NEED_IPV4=y
CONFIG_NET_APP_CLIENT=y
CONFIG_NET_APP_SETTINGS=y

CONFIG_LWM2M=y
Expand Down
2 changes: 0 additions & 2 deletions samples/net/lwm2m_client/prj_qemu_x86.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ CONFIG_NET_CONTEXT_NET_PKT_POOL=y

CONFIG_NET_SHELL=y

CONFIG_NET_APP=y
CONFIG_NET_APP_NEED_IPV6=y
CONFIG_NET_APP_NEED_IPV4=y
CONFIG_NET_APP_CLIENT=y
CONFIG_NET_APP_SETTINGS=y

CONFIG_LWM2M=y
Expand Down
14 changes: 0 additions & 14 deletions samples/net/lwm2m_client/src/lwm2m-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
#include <net/net_app.h>
#include <net/lwm2m.h>

#if defined(CONFIG_NET_L2_BT)
#include <bluetooth/bluetooth.h>
#include <gatt/ipss.h>
#endif

#define APP_BANNER "Run LWM2M client"

#if !defined(CONFIG_NET_APP_PEER_IPV4_ADDR)
Expand Down Expand Up @@ -282,15 +277,6 @@ void main(void)

k_sem_init(&quit_lock, 0, UINT_MAX);

#if defined(CONFIG_NET_L2_BT)
if (bt_enable(NULL)) {
SYS_LOG_ERR("Bluetooth init failed");
return;
}
ipss_init();
ipss_advertise();
#endif

ret = lwm2m_setup();
if (ret < 0) {
SYS_LOG_ERR("Cannot setup LWM2M fields (%d)", ret);
Expand Down
1 change: 1 addition & 0 deletions subsys/net/lib/lwm2m/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ menuconfig LWM2M
bool "OMA LWM2M protocol stack"
default n
select ZOAP
select NET_APP_CLIENT
help
This option adds logic for managing OMA LWM2M data

Expand Down