|
24 | 24 | #include <app/AttributeAccessInterface.h> |
25 | 25 | #include <app/AttributeAccessInterfaceRegistry.h> |
26 | 26 | #include <app/ConcreteCommandPath.h> |
| 27 | +#include <app/InteractionModelEngine.h> |
27 | 28 | #include <app/reporting/reporting.h> |
28 | 29 | #include <app/server/Server.h> |
29 | 30 | #include <app/util/attribute-storage.h> |
@@ -298,8 +299,7 @@ bool emberAfJointFabricDatastoreClusterAddKeySetCallback( |
298 | 299 | app::JointFabricDatastore & jointFabricDatastore = Server::GetInstance().GetJointFabricDatastore(); |
299 | 300 |
|
300 | 301 | VerifyOrExit(jointFabricDatastore.IsGroupKeySetEntryPresent(groupKeySet.groupKeySetID) == false, |
301 | | - // TODO: make sure this maps to Protocols::InteractionModel::ClusterStatusCode::ConstraintError |
302 | | - err = CHIP_ERROR_INVALID_ARGUMENT); |
| 302 | + err = CHIP_IM_GLOBAL_STATUS(ConstraintError)); |
303 | 303 | SuccessOrExit(err = jointFabricDatastore.AddGroupKeySetEntry(groupKeySet)); |
304 | 304 |
|
305 | 305 | exit: |
@@ -550,7 +550,10 @@ bool emberAfJointFabricDatastoreClusterRefreshNodeCallback( |
550 | 550 |
|
551 | 551 | app::JointFabricDatastore & jointFabricDatastore = Server::GetInstance().GetJointFabricDatastore(); |
552 | 552 |
|
553 | | - SuccessOrExit(err = jointFabricDatastore.RefreshNode(nodeId)); |
| 553 | + ReadOnlyBufferBuilder<DataModel::EndpointEntry> endpointsList; |
| 554 | + // TODO: Get Endpoints List from connected device with <nodeId> |
| 555 | + |
| 556 | + SuccessOrExit(err = jointFabricDatastore.RefreshNode(nodeId, endpointsList.TakeBuffer())); |
554 | 557 |
|
555 | 558 | exit: |
556 | 559 | if (err == CHIP_NO_ERROR) |
|
0 commit comments