Skip to content

Commit

Permalink
fix(mosq): Add esp-tls as public lib as used in config
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cermak committed Dec 13, 2024
1 parent 454d6d0 commit 7f5ab20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion components/mosquitto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ idf_component_register(SRCS ${m_srcs}
PRIV_INCLUDE_DIRS port/priv_include port/priv_include/sys ${m_dir} ${m_src_dir}
${m_incl_dir} ${m_lib_dir} ${m_deps_dir}
INCLUDE_DIRS ${m_incl_dir} port/include
PRIV_REQUIRES newlib esp-tls
REQUIRES esp-tls
PRIV_REQUIRES newlib
)

target_compile_definitions(${COMPONENT_LIB} PRIVATE "WITH_BROKER")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,3 @@ idf_component_register(SRCS "serverless_mqtt.c"
"wifi_connect.c"
INCLUDE_DIRS "."
REQUIRES libjuice nvs_flash mqtt json esp_wifi)

if(PEER1)
target_compile_definitions(${COMPONENT_LIB} PRIVATE "PEER1")
elseif(PEER2)
target_compile_definitions(${COMPONENT_LIB} PRIVATE "PEER2")
else()
message(FATAL_ERROR "Please define either PEER1 or PEER2")
endif()

0 comments on commit 7f5ab20

Please sign in to comment.