Skip to content

Commit e6c0538

Browse files
igrrdavid-cermak
authored andcommitted
fix(esp_mqtt_cxx): reference protocol_examples_common from IDF
This makes the example project usable from the component registry
1 parent d6b6f63 commit e6c0538

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

components/esp_mqtt_cxx/examples/ssl/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
# CMakeLists in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate) This example uses an extra component for common
6-
# functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS
8-
"../../../../common_components/protocol_examples_common")
9-
105
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
116
project(mqtt_ssl_cxx)
127

components/esp_mqtt_cxx/examples/ssl/main/idf_component.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ dependencies:
22
## Required IDF version
33
idf: ">=5.0"
44
espressif/esp_mqtt_cxx:
5-
version: "^0.1.0"
5+
version: "~0"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

components/esp_mqtt_cxx/examples/tcp/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,5 @@
22
# in this exact order for cmake to work correctly
33
cmake_minimum_required(VERSION 3.16)
44

5-
# (Not part of the boilerplate)
6-
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
7-
set(EXTRA_COMPONENT_DIRS
8-
"../../../../common_components/protocol_examples_common")
9-
105
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
116
project(mqtt_tcp_cxx)

components/esp_mqtt_cxx/examples/tcp/main/idf_component.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ dependencies:
22
## Required IDF version
33
idf: ">=5.0"
44
espressif/esp_mqtt_cxx:
5-
version: "^0.1.0"
5+
version: "~0"
66
override_path: "../../../"
7+
protocol_examples_common:
8+
path: ${IDF_PATH}/examples/common_components/protocol_examples_common

0 commit comments

Comments
 (0)