diff --git a/test/tcp/mb_tcp_master/CMakeLists.txt b/test/tcp/mb_tcp_master/CMakeLists.txt index 8debb49..194d5b2 100644 --- a/test/tcp/mb_tcp_master/CMakeLists.txt +++ b/test/tcp/mb_tcp_master/CMakeLists.txt @@ -9,7 +9,6 @@ set(EXCLUDE_COMPONENTS examples test_app test freemodbus) set(MB_PARAMS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../mb_example_common") 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. list(APPEND EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common) diff --git a/test/tcp/mb_tcp_master/main/idf_component.yml b/test/tcp/mb_tcp_master/main/idf_component.yml new file mode 100644 index 0000000..1b4743e --- /dev/null +++ b/test/tcp/mb_tcp_master/main/idf_component.yml @@ -0,0 +1,6 @@ +dependencies: + idf: ">=4.1" + espressif/mdns: + version: "^1.0.0" + rules: + - if: "idf_version >=5.0" diff --git a/test/tcp/mb_tcp_slave/main/CMakeLists.txt b/test/tcp/mb_tcp_slave/main/CMakeLists.txt index 588a20f..1abefc1 100644 --- a/test/tcp/mb_tcp_slave/main/CMakeLists.txt +++ b/test/tcp/mb_tcp_slave/main/CMakeLists.txt @@ -1,4 +1,5 @@ set(PROJECT_NAME "modbus_tcp_slave") idf_component_register(SRCS "tcp_slave.c" - INCLUDE_DIRS ".") + INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/test/tcp/mb_tcp_slave/main/idf_component.yml b/test/tcp/mb_tcp_slave/main/idf_component.yml new file mode 100644 index 0000000..1b4743e --- /dev/null +++ b/test/tcp/mb_tcp_slave/main/idf_component.yml @@ -0,0 +1,6 @@ +dependencies: + idf: ">=4.1" + espressif/mdns: + version: "^1.0.0" + rules: + - if: "idf_version >=5.0"