mirror of
https://github.com/eclipse/upm.git
synced 2025-07-03 10:21:19 +03:00
ozw: Initial implementation
This module was developed using the OpenZWave library (v1.3): http://www.openzwave.com/ It was developed using a collection of devices (switches and a multi-sensor) connected via an Aeon Z-Stick Gen5 USB dongle. It can be used to query (and, where appropriate, set) Values on Nodes connected to the ZWave network. Checks are made in src/ozw/CMakeLists.txt to ensure that the libopenzwave library is installed (via pkg-config). If not present, then neither the module, nor the example will be built. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
287250b32d
commit
fd509c7d79
@ -157,6 +157,10 @@ add_executable (mcp9808-example mcp9808.cxx)
|
||||
add_executable (groveultrasonic-example groveultrasonic.cxx)
|
||||
add_executable (sx1276-lora-example sx1276-lora.cxx)
|
||||
add_executable (sx1276-fsk-example sx1276-fsk.cxx)
|
||||
# availability of libopenzwave is tested in src/ozw/CMakeLists.txt
|
||||
if (OPENZWAVE_FOUND)
|
||||
add_executable (ozw-example ozw.cxx)
|
||||
endif ()
|
||||
|
||||
include_directories (${PROJECT_SOURCE_DIR}/src/hmc5883l)
|
||||
include_directories (${PROJECT_SOURCE_DIR}/src/grove)
|
||||
@ -277,6 +281,10 @@ include_directories (${PROJECT_SOURCE_DIR}/src/dfrph)
|
||||
include_directories (${PROJECT_SOURCE_DIR}/src/mcp9808)
|
||||
include_directories (${PROJECT_SOURCE_DIR}/src/groveultrasonic)
|
||||
include_directories (${PROJECT_SOURCE_DIR}/src/sx1276)
|
||||
if (OPENZWAVE_FOUND)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/src/ozw)
|
||||
include_directories(${OPENZWAVE_INCLUDE_DIRS})
|
||||
endif ()
|
||||
|
||||
target_link_libraries (hmc5883l-example hmc5883l ${CMAKE_THREAD_LIBS_INIT})
|
||||
target_link_libraries (groveled-example grove ${CMAKE_THREAD_LIBS_INIT})
|
||||
@ -435,3 +443,6 @@ target_link_libraries (mcp9808-example mcp9808 ${CMAKE_THREAD_LIBS_INIT})
|
||||
target_link_libraries (groveultrasonic-example groveultrasonic ${CMAKE_THREAD_LIBS_INIT})
|
||||
target_link_libraries (sx1276-lora-example sx1276 ${CMAKE_THREAD_LIBS_INIT})
|
||||
target_link_libraries (sx1276-fsk-example sx1276 ${CMAKE_THREAD_LIBS_INIT})
|
||||
if (OPENZWAVE_FOUND)
|
||||
target_link_libraries (ozw-example ozw ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif ()
|
||||
|
Reference in New Issue
Block a user