File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 4
4
set (MDNS_NETWORKING "mdns_networking_lwip.c" )
5
5
endif ()
6
6
7
+ if (CONFIG_MDNS_ENABLE_CONSOLE_CLI )
8
+ set (MDNS_CONSOLE "mdns_console.c" )
9
+ else ()
10
+ set (MDNS_CONSOLE "" )
11
+ endif ()
12
+
7
13
idf_build_get_property (target IDF_TARGET )
8
14
if (${target} STREQUAL "linux" )
9
15
set (dependencies esp_netif_linux esp_timer esp_system )
10
16
set (srcs "mdns.c" ${MDNS_NETWORKING} )
11
17
else ()
12
18
set (dependencies lwip console esp_netif )
13
19
set (private_dependencies esp_timer esp_wifi )
14
- set (srcs "mdns.c" ${MDNS_NETWORKING} "mdns_console.c" )
20
+ set (srcs "mdns.c" ${MDNS_NETWORKING} ${MDNS_CONSOLE} )
15
21
endif ()
16
22
17
23
idf_component_register (
Original file line number Diff line number Diff line change @@ -100,6 +100,12 @@ menu "mDNS"
100
100
help
101
101
Enable for the library to log received and sent mDNS packets to stdout.
102
102
103
+ config MDNS_ENABLE_CONSOLE_CLI
104
+ bool "Enable Command Line Interface on device console"
105
+ default y
106
+ help
107
+ Enable for the console cli to be available on the device.
108
+
103
109
config MDNS_RESPOND_REVERSE_QUERIES
104
110
bool "Enable responding to IPv4 reverse queries"
105
111
default n
You can’t perform that action at this time.
0 commit comments