mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(mdns): Add configuration to enable/disable mDNS
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
set(COMPONENT_SRCS "mdns.c"
|
set(COMPONENT_SRCS "src/mdns.c"
|
||||||
"mdns_console.c"
|
"src/mdns_console.c"
|
||||||
"mdns_networking.c")
|
"src/mdns_networking.c")
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
||||||
set(COMPONENT_PRIV_INCLUDEDIRS "private_include")
|
set(COMPONENT_PRIV_INCLUDEDIRS "private_include")
|
||||||
set(COMPONENT_REQUIRES lwip mbedtls console tcpip_adapter)
|
set(COMPONENT_REQUIRES lwip mbedtls console tcpip_adapter)
|
||||||
|
@ -1,9 +1,17 @@
|
|||||||
menu "mDNS"
|
menu "mDNS"
|
||||||
|
|
||||||
|
config ENABLE_MDNS
|
||||||
|
bool "Enable mDNS"
|
||||||
|
default n
|
||||||
|
select LWIP_IPV6
|
||||||
|
help
|
||||||
|
Enable this option and then mDNS is to be used.
|
||||||
|
|
||||||
config MDNS_MAX_SERVICES
|
config MDNS_MAX_SERVICES
|
||||||
int "Max number of services"
|
int "Max number of services"
|
||||||
range 1 64
|
range 1 64
|
||||||
default 10
|
default 10
|
||||||
|
depends on ENABLE_MDNS
|
||||||
help
|
help
|
||||||
Services take up a certain amount of memory, and allowing fewer
|
Services take up a certain amount of memory, and allowing fewer
|
||||||
services to be open at the same time conserves memory. Specify
|
services to be open at the same time conserves memory. Specify
|
||||||
|
@ -1,2 +1,6 @@
|
|||||||
COMPONENT_ADD_INCLUDEDIRS := include
|
COMPONENT_ADD_INCLUDEDIRS := include
|
||||||
COMPONENT_PRIV_INCLUDEDIRS := private_include
|
COMPONENT_PRIV_INCLUDEDIRS := private_include
|
||||||
|
|
||||||
|
ifdef CONFIG_ENABLE_MDNS
|
||||||
|
COMPONENT_SRCDIRS := src
|
||||||
|
endif
|
||||||
|
1
examples/protocols/mdns/sdkconfig.defaults
Normal file
1
examples/protocols/mdns/sdkconfig.defaults
Normal file
@ -0,0 +1 @@
|
|||||||
|
CONFIG_ENABLE_MDNS=y
|
Reference in New Issue
Block a user