2026-05-26 15:33:07 +02:00
|
|
|
set(srcs mqtt_client.c lib/mqtt_msg.c lib/platform_esp32_idf.c)
|
2022-10-17 12:21:52 +02:00
|
|
|
|
|
|
|
|
if(CONFIG_MQTT_PROTOCOL_5)
|
|
|
|
|
list(APPEND srcs lib/mqtt5_msg.c mqtt5_client.c)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
list(TRANSFORM srcs PREPEND ${CMAKE_CURRENT_LIST_DIR}/)
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
|
INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/include
|
|
|
|
|
PRIV_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/lib/include
|
|
|
|
|
REQUIRES esp_event tcp_transport
|
|
|
|
|
PRIV_REQUIRES esp_timer http_parser esp_hw_support heap
|
|
|
|
|
KCONFIG ${CMAKE_CURRENT_LIST_DIR}/Kconfig
|
|
|
|
|
)
|
2025-11-19 11:07:55 +01:00
|
|
|
|
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/lib/mqtt_utils)
|
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC idf::mqtt::utils)
|
2026-05-26 15:33:07 +02:00
|
|
|
|
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/lib/mqtt_outbox)
|
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PRIVATE idf::mqtt::outbox)
|