Skip to content

Commit

Permalink
fix(esp_mqtt_cxx): reference protocol_examples_common from IDF
Browse files Browse the repository at this point in the history
This makes the example project usable from the component registry
  • Loading branch information
igrr authored and david-cermak committed Nov 9, 2023
1 parent d6b6f63 commit e6c0538
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
5 changes: 0 additions & 5 deletions components/esp_mqtt_cxx/examples/ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

# (Not part of the boilerplate) This example uses an extra component for common
# functions such as Wi-Fi and Ethernet connection.
set(EXTRA_COMPONENT_DIRS
"../../../../common_components/protocol_examples_common")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(mqtt_ssl_cxx)

Expand Down
4 changes: 3 additions & 1 deletion components/esp_mqtt_cxx/examples/ssl/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ dependencies:
## Required IDF version
idf: ">=5.0"
espressif/esp_mqtt_cxx:
version: "^0.1.0"
version: "~0"
override_path: "../../../"
protocol_examples_common:
path: ${IDF_PATH}/examples/common_components/protocol_examples_common
5 changes: 0 additions & 5 deletions components/esp_mqtt_cxx/examples/tcp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,5 @@
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

# (Not part of the boilerplate)
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
set(EXTRA_COMPONENT_DIRS
"../../../../common_components/protocol_examples_common")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(mqtt_tcp_cxx)
4 changes: 3 additions & 1 deletion components/esp_mqtt_cxx/examples/tcp/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ dependencies:
## Required IDF version
idf: ">=5.0"
espressif/esp_mqtt_cxx:
version: "^0.1.0"
version: "~0"
override_path: "../../../"
protocol_examples_common:
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

0 comments on commit e6c0538

Please sign in to comment.