Merge branch 'dnssd_start_server' into 'main'

esp_matter: Start dnssd server when getting IP address according to CHIP_DEVICE_CONFIG_ENABLE_WIFI

See merge request app-frameworks/esp-matter!343
This commit is contained in:
Shu Chen
2023-04-14 10:16:16 +08:00
+1 -1
View File
@@ -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();