From e3cd51dc4d2899dd84c7e8244b935259228c49d7 Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Tue, 11 Apr 2023 19:38:28 +0800 Subject: [PATCH] esp_matter: Start dnssd server when getting IP address according to CHIP_DEVICE_CONFIG_ENABLE_WIFI --- components/esp_matter/esp_matter_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_core.cpp b/components/esp_matter/esp_matter_core.cpp index 554b41329..ffc33d87d 100644 --- a/components/esp_matter/esp_matter_core.cpp +++ b/components/esp_matter/esp_matter_core.cpp @@ -833,7 +833,7 @@ static void device_callback_internal(const ChipDeviceEvent * event, intptr_t arg switch (event->Type) { case chip::DeviceLayer::DeviceEventType::kInterfaceIpAddressChanged: -#if !CHIP_DEVICE_CONFIG_ENABLE_THREAD +#if CHIP_DEVICE_CONFIG_ENABLE_WIFI if (event->InterfaceIpAddressChanged.Type == chip::DeviceLayer::InterfaceIpChangeType::kIpV6_Assigned || event->InterfaceIpAddressChanged.Type == chip::DeviceLayer::InterfaceIpChangeType::kIpV4_Assigned) { chip::app::DnssdServer::Instance().StartServer();