Skip to content

Commit

Permalink
examples/wakaama: Configure server only if not set by Kconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Dec 19, 2019
1 parent 24ea601 commit 2024ed5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/wakaama/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,3 +43,8 @@ USEPKG += wakaama
CFLAGS += -DLWM2M_CLIENT_MODE

include $(RIOTBASE)/Makefile.include

# Configure server via CFLAGS only is not done via Kconfig
ifndef CONFIG_LWM2M_SERVER_URI
CFLAGS += -DCONFIG_LWM2M_SERVER_URI=$(SERVER_URI)
endif

0 comments on commit 2024ed5

Please sign in to comment.