@@ -30,6 +30,7 @@ using namespace chip::app::Clusters;
30
30
31
31
namespace {
32
32
33
+ constexpr EndpointId kAggregatorEndpointId = 1 ;
33
34
constexpr uint16_t kWindowTimeout = 300 ;
34
35
constexpr uint16_t kIteration = 1000 ;
35
36
constexpr uint16_t kSubscribeMinInterval = 0 ;
@@ -207,7 +208,7 @@ void DeviceManager::SubscribeRemoteFabricBridge()
207
208
// Prepare and push the commissioner control subscribe command
208
209
commandBuilder.Add (" commissionercontrol subscribe-event commissioning-request-result " );
209
210
commandBuilder.AddFormat (" %d %d %lu %d --is-urgent true --keepSubscriptions true" , kSubscribeMinInterval , kSubscribeMaxInterval ,
210
- mRemoteBridgeNodeId , kRootEndpointId );
211
+ mRemoteBridgeNodeId , kAggregatorEndpointId );
211
212
PushCommand (commandBuilder.c_str ());
212
213
}
213
214
@@ -224,7 +225,7 @@ void DeviceManager::ReadSupportedDeviceCategories()
224
225
225
226
commandBuilder.Add (" commissionercontrol read supported-device-categories " );
226
227
commandBuilder.AddFormat (" %ld " , mRemoteBridgeNodeId );
227
- commandBuilder.AddFormat (" %d" , kRootEndpointId );
228
+ commandBuilder.AddFormat (" %d" , kAggregatorEndpointId );
228
229
229
230
PushCommand (commandBuilder.c_str ());
230
231
}
@@ -259,7 +260,7 @@ void DeviceManager::RequestCommissioningApproval()
259
260
260
261
StringBuilder<kMaxCommandSize > commandBuilder;
261
262
commandBuilder.Add (" commissionercontrol request-commissioning-approval " );
262
- commandBuilder.AddFormat (" %lu %u %u %lu %d" , requestId, vendorId, productId, mRemoteBridgeNodeId , kRootEndpointId );
263
+ commandBuilder.AddFormat (" %lu %u %u %lu %d" , requestId, vendorId, productId, mRemoteBridgeNodeId , kAggregatorEndpointId );
263
264
264
265
mRequestId = requestId;
265
266
PushCommand (commandBuilder.c_str ());
@@ -398,7 +399,7 @@ void DeviceManager::SendCommissionNodeRequest(uint64_t requestId, uint16_t respo
398
399
399
400
StringBuilder<kMaxCommandSize > commandBuilder;
400
401
commandBuilder.Add (" commissionercontrol commission-node " );
401
- commandBuilder.AddFormat (" %lu %u %lu %d" , requestId, responseTimeoutSeconds, mRemoteBridgeNodeId , kRootEndpointId );
402
+ commandBuilder.AddFormat (" %lu %u %lu %d" , requestId, responseTimeoutSeconds, mRemoteBridgeNodeId , kAggregatorEndpointId );
402
403
403
404
PushCommand (commandBuilder.c_str ());
404
405
}
0 commit comments