From c5069977a49cbb7ded08e73d8f63c55dc81f4cb3 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 24 Jul 2018 16:59:03 +0200 Subject: [PATCH] MQTT: Integrate esp-mqtt library into idf added docs and tests for mqtt library, small fixes (removed warnings, option for custom outbox, websocket bug fixed for longer transports). refactored to use common tcp_transport component, support for CMake build system. Closes #2108 --- components/mqtt/CMakeLists.txt | 7 +++++++ components/mqtt/Kconfig | 1 + components/mqtt/component.mk | 4 ++++ components/mqtt/esp-mqtt | 1 + 4 files changed, 13 insertions(+) create mode 100644 components/mqtt/CMakeLists.txt create mode 100644 components/mqtt/Kconfig create mode 100644 components/mqtt/component.mk create mode 160000 components/mqtt/esp-mqtt diff --git a/components/mqtt/CMakeLists.txt b/components/mqtt/CMakeLists.txt new file mode 100644 index 0000000..ba5375c --- /dev/null +++ b/components/mqtt/CMakeLists.txt @@ -0,0 +1,7 @@ +set(COMPONENT_ADD_INCLUDEDIRS esp-mqtt/include) +set(COMPONENT_PRIV_INCLUDEDIRS "esp-mqtt/lib/include") +set(COMPONENT_SRCDIRS esp-mqtt esp-mqtt/lib) + +set(COMPONENT_REQUIRES lwip nghttp mbedtls tcp_transport) + +register_component() diff --git a/components/mqtt/Kconfig b/components/mqtt/Kconfig new file mode 100644 index 0000000..273a2da --- /dev/null +++ b/components/mqtt/Kconfig @@ -0,0 +1 @@ +source "$IDF_PATH/components/mqtt/esp-mqtt/Kconfig.included" diff --git a/components/mqtt/component.mk b/components/mqtt/component.mk new file mode 100644 index 0000000..19e4980 --- /dev/null +++ b/components/mqtt/component.mk @@ -0,0 +1,4 @@ +COMPONENT_SUBMODULES += esp-mqtt +COMPONENT_ADD_INCLUDEDIRS := esp-mqtt/include +COMPONENT_SRCDIRS := esp-mqtt esp-mqtt/lib +COMPONENT_PRIV_INCLUDEDIRS := esp-mqtt/lib/include diff --git a/components/mqtt/esp-mqtt b/components/mqtt/esp-mqtt new file mode 160000 index 0000000..abaab2a --- /dev/null +++ b/components/mqtt/esp-mqtt @@ -0,0 +1 @@ +Subproject commit abaab2abccc019aa57f5b9afaf57f0d49f7b1b6f