net: zoap_client: Remove dependency on ipss sample service
The so called Router role don't require the IPSS, nor it should advertise since it is not the peripheral in this case. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
71929d2d5c
commit
b9c7f2ac33
3 changed files with 0 additions and 19 deletions
|
@ -4,8 +4,3 @@ ccflags-y +=-DNET_TESTING_SERVER=1
|
|||
endif
|
||||
|
||||
obj-y = zoap-client.o
|
||||
|
||||
ifeq ($(CONFIG_NET_L2_BLUETOOTH), y)
|
||||
ccflags-y +=-I${ZEPHYR_BASE}/samples/bluetooth/
|
||||
obj-y += ipss.o
|
||||
endif
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
/* Workaround build system bug that will put objects in source dir */
|
||||
#include "../../../bluetooth/gatt/ipss.c"
|
|
@ -17,11 +17,6 @@
|
|||
#include <net/udp.h>
|
||||
#include <net/zoap.h>
|
||||
|
||||
#if defined(CONFIG_NET_L2_BLUETOOTH)
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <gatt/ipss.h>
|
||||
#endif
|
||||
|
||||
#define MY_COAP_PORT 5683
|
||||
|
||||
#define NUM_PENDINGS 3
|
||||
|
@ -261,13 +256,6 @@ void main(void)
|
|||
{
|
||||
struct net_if *iface = net_if_get_default();
|
||||
|
||||
#if defined(CONFIG_NET_L2_BLUETOOTH)
|
||||
if (bt_enable(NULL)) {
|
||||
NET_ERR("Bluetooth init failed\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_NET_MGMT_EVENT)
|
||||
/* Subscribe to NET_IF_UP if interface is not ready */
|
||||
if (!atomic_test_bit(iface->flags, NET_IF_UP)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue