2022-03-03 02:40:03 -05:00
|
|
|
set(srcs esp-mqtt/mqtt_client.c esp-mqtt/lib/mqtt_msg.c esp-mqtt/lib/mqtt_outbox.c esp-mqtt/lib/platform_esp32_idf.c)
|
|
|
|
|
|
|
|
if(CONFIG_MQTT_PROTOCOL_5)
|
|
|
|
list(APPEND srcs esp-mqtt/lib/mqtt5_msg.c esp-mqtt/mqtt5_client.c)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
2019-04-28 03:38:23 -04:00
|
|
|
INCLUDE_DIRS esp-mqtt/include
|
2022-06-07 07:10:38 -04:00
|
|
|
PRIV_INCLUDE_DIRS "esp-mqtt/lib/include"
|
2022-09-05 09:46:10 -04:00
|
|
|
REQUIRES esp_event tcp_transport
|
|
|
|
PRIV_REQUIRES esp_timer http_parser esp_hw_support
|
2022-06-07 07:10:38 -04:00
|
|
|
)
|
2022-01-31 13:45:31 -05:00
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|