examples/wakaama: Configure server only if not set by Kconfig
This commit is contained in:
parent
c392a4ad34
commit
e2325ddba4
@ -31,10 +31,6 @@ DEVELHELP ?= 1
|
|||||||
# Specific the server URI address (NOTE: Domain names not supported yet)
|
# Specific the server URI address (NOTE: Domain names not supported yet)
|
||||||
SERVER_URI ?= '"coap://[fd00:dead:beef::1]"'
|
SERVER_URI ?= '"coap://[fd00:dead:beef::1]"'
|
||||||
|
|
||||||
ifneq (,$(SERVER_URI))
|
|
||||||
CFLAGS += -DCONFIG_LWM2M_SERVER_URI=$(SERVER_URI)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# NOTE: Add the package for wakaama
|
# NOTE: Add the package for wakaama
|
||||||
USEPKG += wakaama
|
USEPKG += wakaama
|
||||||
# Uncomment to enable Wakaama debug log
|
# Uncomment to enable Wakaama debug log
|
||||||
@ -47,3 +43,8 @@ USEPKG += wakaama
|
|||||||
CFLAGS += -DLWM2M_CLIENT_MODE
|
CFLAGS += -DLWM2M_CLIENT_MODE
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|
||||||
|
# Configure server via CFLAGS only if not done via Kconfig
|
||||||
|
ifndef CONFIG_LWM2M_SERVER_URI
|
||||||
|
CFLAGS += -DCONFIG_LWM2M_SERVER_URI=$(SERVER_URI)
|
||||||
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user