Skip to content

Commit

Permalink
Enable SENML_JSON support in lightclient
Browse files Browse the repository at this point in the history
Lightclient example now works out-of-the-box with wakaama server example.

Signed-off-by: Leif Sandstrom <[email protected]>
  • Loading branch information
Leif Sandstrom committed Jan 20, 2021
1 parent d4ea880 commit 5e5b718
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/lightclient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ include(${CMAKE_CURRENT_LIST_DIR}/../../core/wakaama.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/../shared/shared.cmake)

add_definitions(-DLWM2M_CLIENT_MODE)
if(LWM2M_VERSION VERSION_GREATER "1.0")
add_definitions(-DLWM2M_SUPPORT_SENML_JSON)
endif()

add_definitions(${SHARED_DEFINITIONS} ${WAKAAMA_DEFINITIONS})

include_directories (${WAKAAMA_SOURCES_DIR} ${SHARED_INCLUDE_DIRS})
Expand Down

0 comments on commit 5e5b718

Please sign in to comment.