1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/wakaama: Configure server only if not set by Kconfig

This commit is contained in:
Leandro Lanzieri 2019-12-17 14:05:44 +01:00
parent c392a4ad34
commit e2325ddba4
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3

View File

@ -31,10 +31,6 @@ DEVELHELP ?= 1
# Specific the server URI address (NOTE: Domain names not supported yet)
SERVER_URI ?= '"coap://[fd00:dead:beef::1]"'
ifneq (,$(SERVER_URI))
CFLAGS += -DCONFIG_LWM2M_SERVER_URI=$(SERVER_URI)
endif
# NOTE: Add the package for wakaama
USEPKG += wakaama
# Uncomment to enable Wakaama debug log
@ -47,3 +43,8 @@ USEPKG += wakaama
CFLAGS += -DLWM2M_CLIENT_MODE
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