Skip to content

Commit 7705be9

Browse files
[Fabric-Admin] Fix the new added device failed to get reported (#35058)
* [Fabric-Admin] Fix the new added device failed to get reported * Restyled by prettier-markdown --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent e9f64bb commit 7705be9

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

docs/guides/fabric_synchronization_guide.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ Run the Fabric Synchronization script:
9898

9999
In Ecosystem 1 Fabric-Admin console:
100100

101+
Pair the local bridge of Ecosystem 1 with node ID 1:
102+
103+
```
104+
fabricsync add-local-bridge 1
105+
```
106+
101107
Pair the Ecosystem 2 bridge to Ecosystem 1 with node ID 2:
102108

103109
```
@@ -130,8 +136,8 @@ Pair the Light Example with node ID 3 using its payload number:
130136
pairing already-discovered 3 20202021 <ip> 5543
131137
```
132138

133-
After the device is successfully added, you will observe the following on
134-
Ecosystem 2 with the newly assigned Node ID:
139+
After the device is successfully added, you will observe the following message
140+
on Ecosystem 2 with the newly assigned Node ID:
135141

136142
```
137143
>>> New device with Node ID: 0x3 has been successfully added.

examples/fabric-admin/device_manager/DeviceManager.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ void DeviceManager::SubscribeRemoteFabricBridge()
215215

216216
// Prepare and push the commissioner control subscribe command
217217
commandBuilder.Add("commissionercontrol subscribe-event commissioning-request-result ");
218-
commandBuilder.AddFormat("%d %d %lu %d --is-urgent true", kSubscribeMinInterval, kSubscribeMaxInterval, mRemoteBridgeNodeId,
219-
kRootEndpointId);
218+
commandBuilder.AddFormat("%d %d %lu %d --is-urgent true --keepSubscriptions true", kSubscribeMinInterval, kSubscribeMaxInterval,
219+
mRemoteBridgeNodeId, kRootEndpointId);
220220
PushCommand(commandBuilder.c_str());
221221
}
222222

@@ -413,7 +413,7 @@ void DeviceManager::HandleAttributeData(const app::ConcreteDataAttributePath & p
413413
for (const auto & endpoint : addedEndpoints)
414414
{
415415
// print to console
416-
fprintf(stderr, "A new devie is added on Endpoint: %u\n", endpoint);
416+
fprintf(stderr, "A new device is added on Endpoint: %u\n", endpoint);
417417

418418
if (mAutoSyncEnabled)
419419
{

0 commit comments

Comments
 (0)