Skip to content

Commit

Permalink
[mdns] Renamed mDNS abstract layer to DNS-SD (#10381)
Browse files Browse the repository at this point in the history
Abstract layer providing DNS Service Discovery functionalities
is currently called mDNS, but mDNS is actually a DNS-SD specific
implementation. Abstract layer should be named DNS-SD, while
mDNS and SRP should be modules implementing DNS-SD API.

Overall 1:1 changes from mDNS naming to dnssd, including:
* src/lib/mdns -> src/lib/dnssd
* lib/mdns/minimal -> lib/dnssd/minimal_mdns
* app/server/Mdns -> app/server/Dnssd
* MdnsImpl -> DnssdImpl
* Mdns namespace -> Dnssd namespace
  • Loading branch information
kkasperczyk-no authored and pull[bot] committed Nov 5, 2021
1 parent cf80c3d commit 4401813
Show file tree
Hide file tree
Showing 203 changed files with 1,094 additions and 1,085 deletions.
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ INPUT = README.md \
src/crypto \
src/include \
src/inet \
src/lib/mdns \
src/lib/dnssd \
src/lib/core \
src/lib/support \
src/lib/shell \
Expand Down
10 changes: 5 additions & 5 deletions examples/all-clusters-app/esp32/main/DeviceCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#include <app-common/zap-generated/attribute-id.h>
#include <app-common/zap-generated/cluster-id.h>
#include <app/Command.h>
#include <app/server/Mdns.h>
#include <app/server/Dnssd.h>
#include <app/util/basic-types.h>
#include <app/util/util.h>
#include <lib/mdns/Advertiser.h>
#include <lib/dnssd/Advertiser.h>
#include <lib/support/CodeUtils.h>

static const char * TAG = "app-devicecallbacks";
Expand Down Expand Up @@ -81,7 +81,7 @@ void DeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, intptr_
// will not trigger a 'internet connectivity change' as there is no internet
// connectivity. MDNS still wants to refresh its listening interfaces to include the
// newly selected address.
chip::app::MdnsServer::Instance().StartServer();
chip::app::DnssdServer::Instance().StartServer();
}
break;
}
Expand Down Expand Up @@ -127,7 +127,7 @@ void DeviceCallbacks::OnInternetConnectivityChange(const ChipDeviceEvent * event
{
ESP_LOGI(TAG, "Server ready at: %s:%d", event->InternetConnectivityChange.address, CHIP_PORT);
wifiLED.Set(true);
chip::app::MdnsServer::Instance().StartServer();
chip::app::DnssdServer::Instance().StartServer();
}
else if (event->InternetConnectivityChange.IPv4 == kConnectivity_Lost)
{
Expand All @@ -137,7 +137,7 @@ void DeviceCallbacks::OnInternetConnectivityChange(const ChipDeviceEvent * event
if (event->InternetConnectivityChange.IPv6 == kConnectivity_Established)
{
ESP_LOGI(TAG, "IPv6 Server ready...");
chip::app::MdnsServer::Instance().StartServer();
chip::app::DnssdServer::Instance().StartServer();
}
else if (event->InternetConnectivityChange.IPv6 == kConnectivity_Lost)
{
Expand Down
6 changes: 3 additions & 3 deletions examples/all-clusters-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include <app-common/zap-generated/attribute-type.h>
#include <app-common/zap-generated/cluster-id.h>
#include <app/server/AppDelegate.h>
#include <app/server/Mdns.h>
#include <app/server/Dnssd.h>
#include <app/server/OnboardingCodesUtil.h>
#include <app/server/Server.h>
#include <app/util/af-types.h>
Expand Down Expand Up @@ -360,10 +360,10 @@ class SetupListModel : public ListScreen::Model
}
else if (i == 2)
{
app::MdnsServer::Instance().StartServer(Mdns::CommissioningMode::kEnabledBasic);
app::DnssdServer::Instance().StartServer(Dnssd::CommissioningMode::kEnabledBasic);
chip::Server::GetInstance().GetFabricTable().DeleteAllFabrics();
chip::Server::GetInstance().GetCommissioningWindowManager().OpenBasicCommissioningWindow(
kNoCommissioningTimeout, CommissioningWindowAdvertisement::kMdnsOnly);
kNoCommissioningTimeout, CommissioningWindowAdvertisement::kDnssdOnly);
}
}

Expand Down
8 changes: 4 additions & 4 deletions examples/bridge-app/esp32/main/DeviceCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "esp_log.h"
#include <app-common/zap-generated/attribute-id.h>
#include <app-common/zap-generated/cluster-id.h>
#include <app/server/Mdns.h>
#include <app/server/Dnssd.h>
#include <lib/support/CodeUtils.h>

static const char * TAG = "bridge-devicecallbacks";
Expand Down Expand Up @@ -51,7 +51,7 @@ void DeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, intptr_
// will not trigger a 'internet connectivity change' as there is no internet
// connectivity. MDNS still wants to refresh its listening interfaces to include the
// newly selected address.
chip::app::MdnsServer::Instance().StartServer();
chip::app::DnssdServer::Instance().StartServer();
}
break;
}
Expand All @@ -71,7 +71,7 @@ void DeviceCallbacks::OnInternetConnectivityChange(const ChipDeviceEvent * event
if (event->InternetConnectivityChange.IPv4 == kConnectivity_Established)
{
ESP_LOGI(TAG, "Server ready at: %s:%d", event->InternetConnectivityChange.address, CHIP_PORT);
chip::app::MdnsServer::Instance().StartServer();
chip::app::DnssdServer::Instance().StartServer();
}
else if (event->InternetConnectivityChange.IPv4 == kConnectivity_Lost)
{
Expand All @@ -80,7 +80,7 @@ void DeviceCallbacks::OnInternetConnectivityChange(const ChipDeviceEvent * event
if (event->InternetConnectivityChange.IPv6 == kConnectivity_Established)
{
ESP_LOGI(TAG, "IPv6 Server ready...");
chip::app::MdnsServer::Instance().StartServer();
chip::app::DnssdServer::Instance().StartServer();
}
else if (event->InternetConnectivityChange.IPv6 == kConnectivity_Lost)
{
Expand Down
18 changes: 9 additions & 9 deletions examples/chip-tool/commands/discover/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,24 @@
#include "DiscoverCommissionablesCommand.h"
#include "DiscoverCommissionersCommand.h"
#include <controller/DeviceAddressUpdateDelegate.h>
#include <lib/mdns/Resolver.h>
#include <lib/dnssd/Resolver.h>

class Resolve : public DiscoverCommand, public chip::Mdns::ResolverDelegate
class Resolve : public DiscoverCommand, public chip::Dnssd::ResolverDelegate
{
public:
Resolve() : DiscoverCommand("resolve") {}

/////////// DiscoverCommand Interface /////////
CHIP_ERROR RunCommand(NodeId remoteId, uint64_t fabricId) override
{
ReturnErrorOnFailure(chip::Mdns::Resolver::Instance().Init(&chip::DeviceLayer::InetLayer));
chip::Mdns::Resolver::Instance().SetResolverDelegate(this);
ChipLogProgress(chipTool, "Mdns: Searching for NodeId: %" PRIx64 " FabricId: %" PRIx64 " ...", remoteId, fabricId);
return chip::Mdns::Resolver::Instance().ResolveNodeId(chip::PeerId().SetNodeId(remoteId).SetCompressedFabricId(fabricId),
chip::Inet::kIPAddressType_Any);
ReturnErrorOnFailure(chip::Dnssd::Resolver::Instance().Init(&chip::DeviceLayer::InetLayer));
chip::Dnssd::Resolver::Instance().SetResolverDelegate(this);
ChipLogProgress(chipTool, "Dnssd: Searching for NodeId: %" PRIx64 " FabricId: %" PRIx64 " ...", remoteId, fabricId);
return chip::Dnssd::Resolver::Instance().ResolveNodeId(chip::PeerId().SetNodeId(remoteId).SetCompressedFabricId(fabricId),
chip::Inet::kIPAddressType_Any);
}

void OnNodeIdResolved(const chip::Mdns::ResolvedNodeData & nodeData) override
void OnNodeIdResolved(const chip::Dnssd::ResolvedNodeData & nodeData) override
{
char addrBuffer[chip::Transport::PeerAddress::kMaxToStringSize];
nodeData.mAddress.ToString(addrBuffer);
Expand All @@ -66,7 +66,7 @@ class Resolve : public DiscoverCommand, public chip::Mdns::ResolverDelegate
ChipLogProgress(chipTool, "NodeId Resolution: failed!");
SetCommandExitStatus(CHIP_ERROR_INTERNAL);
}
void OnNodeDiscoveryComplete(const chip::Mdns::DiscoveredNodeData & nodeData) override {}
void OnNodeDiscoveryComplete(const chip::Dnssd::DiscoveredNodeData & nodeData) override {}
};

class Update : public DiscoverCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ CHIP_ERROR DiscoverCommissionablesCommand::Run()
{
GetExecContext()->commissioner->RegisterDeviceDiscoveryDelegate(this);

Mdns::DiscoveryFilter filter(Mdns::DiscoveryFilterType::kNone, (uint64_t) 0);
Dnssd::DiscoveryFilter filter(Dnssd::DiscoveryFilterType::kNone, (uint64_t) 0);
return GetExecContext()->commissioner->DiscoverCommissionableNodes(filter);
}

void DiscoverCommissionablesCommand::OnDiscoveredDevice(const chip::Mdns::DiscoveredNodeData & nodeData)
void DiscoverCommissionablesCommand::OnDiscoveredDevice(const chip::Dnssd::DiscoveredNodeData & nodeData)
{
char rotatingId[chip::Mdns::kMaxRotatingIdLen * 2 + 1] = "";
char rotatingId[chip::Dnssd::kMaxRotatingIdLen * 2 + 1] = "";
Encoding::BytesToUppercaseHexString(nodeData.rotatingId, nodeData.rotatingIdLen, rotatingId, sizeof(rotatingId));

ChipLogProgress(Discovery, "Discovered Node: ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DiscoverCommissionablesCommand : public Command, public chip::Controller::
DiscoverCommissionablesCommand() : Command("commissionables") {}

/////////// DeviceDiscoveryDelegate Interface /////////
void OnDiscoveredDevice(const chip::Mdns::DiscoveredNodeData & nodeData) override;
void OnDiscoveredDevice(const chip::Dnssd::DiscoveredNodeData & nodeData) override;

/////////// Command Interface /////////
CHIP_ERROR Run() override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void DiscoverCommissionersCommand::Shutdown()
int commissionerCount = 0;
for (int i = 0; i < CHIP_DEVICE_CONFIG_MAX_DISCOVERED_NODES; i++)
{
const Mdns::DiscoveredNodeData * commissioner = mCommissionableNodeController.GetDiscoveredCommissioner(i);
const Dnssd::DiscoveredNodeData * commissioner = mCommissionableNodeController.GetDiscoveredCommissioner(i);
if (commissioner != nullptr)
{
ChipLogProgress(chipTool, "Discovered Commisioner #%d", commissionerCount);
Expand Down
17 changes: 9 additions & 8 deletions examples/chip-tool/commands/pairing/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@ class PairOnNetworkShort : public PairingCommand
{
public:
PairOnNetworkShort() :
PairingCommand("onnetwork-short", PairingMode::OnNetwork, PairingNetworkType::None, chip::Mdns::DiscoveryFilterType::kShort)
PairingCommand("onnetwork-short", PairingMode::OnNetwork, PairingNetworkType::None,
chip::Dnssd::DiscoveryFilterType::kShort)
{}
};

class PairOnNetworkLong : public PairingCommand
{
public:
PairOnNetworkLong() :
PairingCommand("onnetwork-long", PairingMode::OnNetwork, PairingNetworkType::None, chip::Mdns::DiscoveryFilterType::kLong)
PairingCommand("onnetwork-long", PairingMode::OnNetwork, PairingNetworkType::None, chip::Dnssd::DiscoveryFilterType::kLong)
{}
};

Expand All @@ -71,7 +72,7 @@ class PairOnNetworkVendor : public PairingCommand
public:
PairOnNetworkVendor() :
PairingCommand("onnetwork-vendor", PairingMode::OnNetwork, PairingNetworkType::None,
chip::Mdns::DiscoveryFilterType::kVendor)
chip::Dnssd::DiscoveryFilterType::kVendor)
{}
};

Expand All @@ -80,7 +81,7 @@ class PairOnNetworkFabric : public PairingCommand
public:
PairOnNetworkFabric() :
PairingCommand("onnetwork-fabric", PairingMode::OnNetwork, PairingNetworkType::None,
chip::Mdns::DiscoveryFilterType::kCompressedFabricId)
chip::Dnssd::DiscoveryFilterType::kCompressedFabricId)
{}
};

Expand All @@ -89,7 +90,7 @@ class PairOnNetworkCommissioningMode : public PairingCommand
public:
PairOnNetworkCommissioningMode() :
PairingCommand("onnetwork-commissioning-mode", PairingMode::OnNetwork, PairingNetworkType::None,
chip::Mdns::DiscoveryFilterType::kCommissioningMode)
chip::Dnssd::DiscoveryFilterType::kCommissioningMode)
{}
};

Expand All @@ -98,7 +99,7 @@ class PairOnNetworkCommissioner : public PairingCommand
public:
PairOnNetworkCommissioner() :
PairingCommand("onnetwork-commissioner", PairingMode::OnNetwork, PairingNetworkType::None,
chip::Mdns::DiscoveryFilterType::kCommissioner)
chip::Dnssd::DiscoveryFilterType::kCommissioner)
{}
};

Expand All @@ -107,7 +108,7 @@ class PairOnNetworkDeviceType : public PairingCommand
public:
PairOnNetworkDeviceType() :
PairingCommand("onnetwork-device-type", PairingMode::OnNetwork, PairingNetworkType::None,
chip::Mdns::DiscoveryFilterType::kDeviceType)
chip::Dnssd::DiscoveryFilterType::kDeviceType)
{}
};

Expand All @@ -116,7 +117,7 @@ class PairOnNetworkInstanceName : public PairingCommand
public:
PairOnNetworkInstanceName() :
PairingCommand("onnetwork-instance-name", PairingMode::OnNetwork, PairingNetworkType::None,
chip::Mdns::DiscoveryFilterType::kInstanceName)
chip::Dnssd::DiscoveryFilterType::kInstanceName)
{}
};

Expand Down
22 changes: 11 additions & 11 deletions examples/chip-tool/commands/pairing/PairingCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,24 +149,24 @@ CHIP_ERROR PairingCommand::Pair(NodeId remoteId, PeerAddress address)

CHIP_ERROR PairingCommand::PairWithMdns(NodeId remoteId)
{
Mdns::DiscoveryFilter filter(mFilterType);
Dnssd::DiscoveryFilter filter(mFilterType);
switch (mFilterType)
{
case chip::Mdns::DiscoveryFilterType::kNone:
case chip::Dnssd::DiscoveryFilterType::kNone:
break;
case chip::Mdns::DiscoveryFilterType::kShort:
case chip::Mdns::DiscoveryFilterType::kLong:
case chip::Mdns::DiscoveryFilterType::kCompressedFabricId:
case chip::Mdns::DiscoveryFilterType::kVendor:
case chip::Mdns::DiscoveryFilterType::kDeviceType:
case chip::Dnssd::DiscoveryFilterType::kShort:
case chip::Dnssd::DiscoveryFilterType::kLong:
case chip::Dnssd::DiscoveryFilterType::kCompressedFabricId:
case chip::Dnssd::DiscoveryFilterType::kVendor:
case chip::Dnssd::DiscoveryFilterType::kDeviceType:
filter.code = mDiscoveryFilterCode;
break;
case chip::Mdns::DiscoveryFilterType::kCommissioningMode:
case chip::Dnssd::DiscoveryFilterType::kCommissioningMode:
break;
case chip::Mdns::DiscoveryFilterType::kCommissioner:
case chip::Dnssd::DiscoveryFilterType::kCommissioner:
filter.code = 1;
break;
case chip::Mdns::DiscoveryFilterType::kInstanceName:
case chip::Dnssd::DiscoveryFilterType::kInstanceName:
filter.code = 0;
filter.instanceName = mDiscoveryFilterInstanceName;
break;
Expand Down Expand Up @@ -453,7 +453,7 @@ void PairingCommand::OnAddressUpdateComplete(NodeId nodeId, CHIP_ERROR err)
}
}

void PairingCommand::OnDiscoveredDevice(const chip::Mdns::DiscoveredNodeData & nodeData)
void PairingCommand::OnDiscoveredDevice(const chip::Dnssd::DiscoveredNodeData & nodeData)
{
const uint16_t port = nodeData.port;
char buf[chip::Inet::kMaxIPAddressStringLength];
Expand Down
24 changes: 12 additions & 12 deletions examples/chip-tool/commands/pairing/PairingCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class PairingCommand : public Command,
{
public:
PairingCommand(const char * commandName, PairingMode mode, PairingNetworkType networkType,
chip::Mdns::DiscoveryFilterType filterType = chip::Mdns::DiscoveryFilterType::kNone) :
chip::Dnssd::DiscoveryFilterType filterType = chip::Dnssd::DiscoveryFilterType::kNone) :
Command(commandName),
mPairingMode(mode), mNetworkType(networkType),
mFilterType(filterType), mRemoteAddr{ IPAddress::Any, INET_NULL_INTERFACEID },
Expand Down Expand Up @@ -119,27 +119,27 @@ class PairingCommand : public Command,

switch (filterType)
{
case chip::Mdns::DiscoveryFilterType::kNone:
case chip::Dnssd::DiscoveryFilterType::kNone:
break;
case chip::Mdns::DiscoveryFilterType::kShort:
case chip::Dnssd::DiscoveryFilterType::kShort:
AddArgument("discriminator", 0, 15, &mDiscoveryFilterCode);
break;
case chip::Mdns::DiscoveryFilterType::kLong:
case chip::Dnssd::DiscoveryFilterType::kLong:
AddArgument("discriminator", 0, 4096, &mDiscoveryFilterCode);
break;
case chip::Mdns::DiscoveryFilterType::kVendor:
case chip::Dnssd::DiscoveryFilterType::kVendor:
AddArgument("vendor-id", 0, UINT16_MAX, &mDiscoveryFilterCode);
break;
case chip::Mdns::DiscoveryFilterType::kCompressedFabricId:
case chip::Dnssd::DiscoveryFilterType::kCompressedFabricId:
AddArgument("fabric-id", 0, UINT64_MAX, &mDiscoveryFilterCode);
break;
case chip::Mdns::DiscoveryFilterType::kCommissioningMode:
case chip::Mdns::DiscoveryFilterType::kCommissioner:
case chip::Dnssd::DiscoveryFilterType::kCommissioningMode:
case chip::Dnssd::DiscoveryFilterType::kCommissioner:
break;
case chip::Mdns::DiscoveryFilterType::kDeviceType:
case chip::Dnssd::DiscoveryFilterType::kDeviceType:
AddArgument("device-type", 0, UINT16_MAX, &mDiscoveryFilterCode);
break;
case chip::Mdns::DiscoveryFilterType::kInstanceName:
case chip::Dnssd::DiscoveryFilterType::kInstanceName:
AddArgument("name", &mDiscoveryFilterInstanceName);
break;
}
Expand All @@ -157,7 +157,7 @@ class PairingCommand : public Command,
void OnCommissioningComplete(NodeId deviceId, CHIP_ERROR error) override;

/////////// DeviceDiscoveryDelegate Interface /////////
void OnDiscoveredDevice(const chip::Mdns::DiscoveredNodeData & nodeData) override;
void OnDiscoveredDevice(const chip::Dnssd::DiscoveredNodeData & nodeData) override;

/////////// DeviceAddressUpdateDelegate Interface /////////
void OnAddressUpdateComplete(NodeId nodeId, CHIP_ERROR error) override;
Expand Down Expand Up @@ -190,7 +190,7 @@ class PairingCommand : public Command,

const PairingMode mPairingMode;
const PairingNetworkType mNetworkType;
const chip::Mdns::DiscoveryFilterType mFilterType;
const chip::Dnssd::DiscoveryFilterType mFilterType;
Command::AddressWithInterface mRemoteAddr;
NodeId mRemoteId;
uint16_t mRemotePort;
Expand Down
2 changes: 1 addition & 1 deletion examples/common/QRCode/repo
Submodule repo updated 37 files
+110 −122 Readme.markdown
+1 −1 c/Makefile
+17 −17 c/qrcodegen-test.c
+118 −0 c/qrcodegen-worker.c
+36 −36 c/qrcodegen.c
+14 −14 c/qrcodegen.h
+3 −3 cpp/Makefile
+59 −31 cpp/QrCode.cpp
+24 −17 cpp/QrCode.hpp
+2 −35 cpp/QrCodeGeneratorDemo.cpp
+101 −0 cpp/QrCodeGeneratorWorker.cpp
+3 −35 java/pom.xml
+3 −3 java/src/main/java/io/nayuki/qrcodegen/DataTooLongException.java
+91 −28 java/src/main/java/io/nayuki/qrcodegen/QrCode.java
+22 −103 java/src/main/java/io/nayuki/qrcodegen/QrCodeGeneratorDemo.java
+100 −0 java/src/main/java/io/nayuki/qrcodegen/QrCodeGeneratorWorker.java
+21 −41 java/src/main/java/io/nayuki/qrcodegen/QrSegment.java
+8 −16 java/src/main/java/io/nayuki/qrcodegen/QrSegmentAdvanced.java
+3 −3 java/src/main/java/io/nayuki/qrcodegen/package-info.java
+0 −29 java/src/main/java/module-info.java
+142 −0 python/qrcodegen-batch-test.py
+1 −21 python/qrcodegen-demo.py
+81 −0 python/qrcodegen-worker.py
+184 −135 python/qrcodegen.py
+4 −4 python/setup.py
+1 −2 rust/Cargo.toml
+7 −9 rust/Readme.markdown
+13 −36 rust/examples/qrcodegen-demo.rs
+113 −0 rust/examples/qrcodegen-worker.rs
+85 −61 rust/src/lib.rs
+5 −0 typescript-javascript/build.sh
+3 −25 typescript-javascript/qrcodegen-input-demo.html
+4 −50 typescript-javascript/qrcodegen-input-demo.ts
+1 −10 typescript-javascript/qrcodegen-output-demo.html
+17 −37 typescript-javascript/qrcodegen-output-demo.ts
+130 −0 typescript-javascript/qrcodegen-worker.ts
+77 −43 typescript-javascript/qrcodegen.ts
2 changes: 1 addition & 1 deletion examples/common/m5stack-tft/repo
2 changes: 1 addition & 1 deletion examples/lighting-app/mbed/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ target_sources(${APP_TARGET} PRIVATE
${CHIP_ROOT}/src/app/util/process-global-message.cpp
${CHIP_ROOT}/src/app/util/util.cpp
${CHIP_ROOT}/src/app/server/EchoHandler.cpp
${CHIP_ROOT}/src/app/server/Mdns.cpp
${CHIP_ROOT}/src/app/server/Dnssd.cpp
${CHIP_ROOT}/src/app/server/OnboardingCodesUtil.cpp
${CHIP_ROOT}/src/app/server/Server.cpp
${CHIP_ROOT}/src/app/server/CommissioningWindowManager.cpp
Expand Down
4 changes: 2 additions & 2 deletions examples/lighting-app/mbed/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// from unistd.h to avoid a conflicting declaration with the `sleep()` provided
// by Mbed-OS in mbed_power_mgmt.h.
#define sleep unistd_sleep
#include <app/server/Mdns.h>
#include <app/server/Dnssd.h>
#include <app/server/Server.h>
#include <platform/CHIPDeviceLayer.h>
#undef sleep
Expand Down Expand Up @@ -94,7 +94,7 @@ int AppTask::Init()
if (event->InternetConnectivityChange.IPv4 == kConnectivity_Established ||
event->InternetConnectivityChange.IPv6 == kConnectivity_Established)
{
chip::app::MdnsServer::Instance().StartServer();
chip::app::DnssdServer::Instance().StartServer();
}
}
},
Expand Down
Loading

0 comments on commit 4401813

Please sign in to comment.