Skip to content

Commit

Permalink
ESP32: Add platform mdns support (browse and resolve) (#15852)
Browse files Browse the repository at this point in the history
* Add platform mdns support for esp32

* Restyled by gn

* Async query for browse and resolve

* Restyled by clang-format

* Change default USE_MINIMAL_MDNS value in Kconfig

* CI errors fix

* format changes

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Nov 24, 2023
1 parent 84a370a commit a5d0cf6
Show file tree
Hide file tree
Showing 5 changed files with 550 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ menu "CHIP Core"

config USE_MINIMAL_MDNS
bool "Use the minimal mDNS implementation shipped in the CHIP library"
default y
default n
help
The CHIP library is shipped with a minimal mDNS implementation,
enable this config to use it rather than the mDNS library in IDF.
Expand Down
2 changes: 1 addition & 1 deletion examples/all-clusters-app/esp32/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT=y

# Serial Flasher config
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
6 changes: 6 additions & 0 deletions src/platform/ESP32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ static_library("ESP32") {
"NetworkCommissioningDriver.cpp",
"NetworkCommissioningDriver.h",
]
if (chip_mdns == "platform") {
sources += [
"DnssdImpl.cpp",
"DnssdImpl.h",
]
}
}

if (chip_enable_openthread) {
Expand Down
Loading

0 comments on commit a5d0cf6

Please sign in to comment.