mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-07-30 18:37:16 +02:00
fix mdns component dependency
This commit is contained in:
@ -9,7 +9,6 @@ set(EXCLUDE_COMPONENTS examples test_app test freemodbus)
|
|||||||
set(MB_PARAMS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../mb_example_common")
|
set(MB_PARAMS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../mb_example_common")
|
||||||
list(APPEND EXTRA_COMPONENT_DIRS "${MB_PARAMS_DIR}")
|
list(APPEND EXTRA_COMPONENT_DIRS "${MB_PARAMS_DIR}")
|
||||||
|
|
||||||
# (Not part of the boilerplate)
|
|
||||||
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
|
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
|
||||||
list(APPEND EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
|
list(APPEND EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
|
||||||
|
|
||||||
|
6
test/tcp/mb_tcp_master/main/idf_component.yml
Normal file
6
test/tcp/mb_tcp_master/main/idf_component.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
dependencies:
|
||||||
|
idf: ">=4.1"
|
||||||
|
espressif/mdns:
|
||||||
|
version: "^1.0.0"
|
||||||
|
rules:
|
||||||
|
- if: "idf_version >=5.0"
|
@ -1,4 +1,5 @@
|
|||||||
set(PROJECT_NAME "modbus_tcp_slave")
|
set(PROJECT_NAME "modbus_tcp_slave")
|
||||||
|
|
||||||
idf_component_register(SRCS "tcp_slave.c"
|
idf_component_register(SRCS "tcp_slave.c"
|
||||||
INCLUDE_DIRS ".")
|
INCLUDE_DIRS ".")
|
||||||
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
||||||
|
6
test/tcp/mb_tcp_slave/main/idf_component.yml
Normal file
6
test/tcp/mb_tcp_slave/main/idf_component.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
dependencies:
|
||||||
|
idf: ">=4.1"
|
||||||
|
espressif/mdns:
|
||||||
|
version: "^1.0.0"
|
||||||
|
rules:
|
||||||
|
- if: "idf_version >=5.0"
|
Reference in New Issue
Block a user