Skip to content

Commit f345476

Browse files
Michael Scottjukkar
authored andcommitted
samples: lwm2m: remove unused NET_L2_BT settings
Currently, we don't have a .conf which enabled BT. This will be re-enabled at some future date after migrating to the full net_app APIs by setting CONFIG_NET_APP_BT_NODE=y. Signed-off-by: Michael Scott <[email protected]>
1 parent e54d750 commit f345476

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

samples/net/lwm2m_client/src/lwm2m-client.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
#include <net/net_app.h>
1717
#include <net/lwm2m.h>
1818

19-
#if defined(CONFIG_NET_L2_BT)
20-
#include <bluetooth/bluetooth.h>
21-
#include <gatt/ipss.h>
22-
#endif
23-
2419
#define APP_BANNER "Run LWM2M client"
2520

2621
#if !defined(CONFIG_NET_APP_PEER_IPV4_ADDR)
@@ -282,15 +277,6 @@ void main(void)
282277

283278
k_sem_init(&quit_lock, 0, UINT_MAX);
284279

285-
#if defined(CONFIG_NET_L2_BT)
286-
if (bt_enable(NULL)) {
287-
SYS_LOG_ERR("Bluetooth init failed");
288-
return;
289-
}
290-
ipss_init();
291-
ipss_advertise();
292-
#endif
293-
294280
ret = lwm2m_setup();
295281
if (ret < 0) {
296282
SYS_LOG_ERR("Cannot setup LWM2M fields (%d)", ret);

0 commit comments

Comments
 (0)