feat(mqtt): Modify mqtt component for RTOS

This commit is contained in:
yuanjm
2020-02-26 16:08:28 +08:00
parent 267eb800c2
commit 6d784f8208
11 changed files with 20 additions and 13 deletions

View File

@@ -4,4 +4,6 @@ idf_component_register(SRCS "esp-mqtt/mqtt_client.c"
"esp-mqtt/lib/platform_esp32_idf.c"
INCLUDE_DIRS esp-mqtt/include
PRIV_INCLUDE_DIRS "esp-mqtt/lib/include"
REQUIRES lwip nghttp mbedtls tcp_transport)
REQUIRES lwip http_parser mbedtls tcp_transport)
target_compile_definitions(${COMPONENT_LIB} PUBLIC -DMQTT_SUPPORTED_FEATURE_WS_SUBPROTOCOL -DMQTT_SUPPORTED_FEATURE_TRANSPORT_ERR_REPORTING)

View File

@@ -2,3 +2,5 @@ COMPONENT_SUBMODULES += esp-mqtt
COMPONENT_ADD_INCLUDEDIRS := esp-mqtt/include
COMPONENT_SRCDIRS := esp-mqtt esp-mqtt/lib
COMPONENT_PRIV_INCLUDEDIRS := esp-mqtt/lib/include
#Due to RTOS version is lower than idf 4.0, so move some define in file mqtt_supported_features.h to here.
CFLAGS += -DMQTT_SUPPORTED_FEATURE_WS_SUBPROTOCOL -DMQTT_SUPPORTED_FEATURE_TRANSPORT_ERR_REPORTING