Skip to content

Commit

Permalink
Fix build on NRFConnect. (#17714)
Browse files Browse the repository at this point in the history
Looks like that has started using Advertiser_ImplNone.
  • Loading branch information
bzbarsky-apple authored Apr 26, 2022
1 parent 5ab3439 commit 923b996
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/dnssd/Advertiser_ImplNone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ class NoneAdvertiser : public ServiceAdvertiser
return CHIP_ERROR_NOT_IMPLEMENTED;
}

CHIP_ERROR GetCommissionableInstanceName(char * instanceName, size_t maxLength) override
CHIP_ERROR GetCommissionableInstanceName(char * instanceName, size_t maxLength) const override
{
ChipLogError(Discovery, "DNS-SD advertising not available. DNS-SD GetCommissionableInstanceName not available.");
return CHIP_ERROR_NOT_IMPLEMENTED;
}

CHIP_ERROR UpdateCommissionableInstanceName() override
{
ChipLogError(Discovery, "DNS-SD advertising not available. Can't update DNS-SD commissionable instance name.");
return CHIP_ERROR_NOT_IMPLEMENTED;
}
};

NoneAdvertiser gAdvertiser;
Expand Down

0 comments on commit 923b996

Please sign in to comment.