Skip to content

Commit

Permalink
Add access control server write implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mlepage-google committed Nov 30, 2021
1 parent a51525c commit e956d90
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/clusters/access-control-server/access-control-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <app/util/af.h>
#include <app/util/attribute-storage.h>

#include <lib/support/logging/CHIPLogging.h>

namespace chip {
namespace app {
namespace Clusters {
Expand Down Expand Up @@ -166,6 +168,7 @@ class AccessControlAttribute : public AttributeAccessInterface
AccessControlAttribute() : AttributeAccessInterface(Optional<EndpointId>(0), Clusters::AccessControl::Id) {}

CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override;
CHIP_ERROR Write(const ConcreteDataAttributePath & aPath, AttributeValueDecoder & aDecoder) override;

private:
CHIP_ERROR ReadAcl(AttributeValueEncoder & aEncoder);
Expand Down Expand Up @@ -212,6 +215,13 @@ CHIP_ERROR AccessControlAttribute::ReadExtension(AttributeValueEncoder & aEncode
return CHIP_ERROR_NOT_IMPLEMENTED;
}

CHIP_ERROR AccessControlAttribute::Write(const ConcreteDataAttributePath & aPath, AttributeValueDecoder & aDecoder)
{
ChipLogDetail(DataManagement, "##################### here in Access Control write #######################");

return CHIP_NO_ERROR;
}

AccessControlAttribute gAttribute;

AccessControl gAccessControl(Examples::GetAccessControlDelegate());
Expand Down

0 comments on commit e956d90

Please sign in to comment.