Skip to content

Commit bc62ef8

Browse files
committed
Enhance resource change event on SimpleInstanceEnabler.
1 parent 3b43776 commit bc62ef8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

leshan-client-core/src/main/java/org/eclipse/leshan/client/resource/SimpleInstanceEnabler.java

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ public WriteResponse write(LwM2mServer server, boolean replace, int resourceid,
132132
}
133133
});
134134

135+
// also add resource path as we can consider that modifying child is a modification.
136+
if (!changedResources.isEmpty()) {
137+
changedResources.add(getResourcePath(resourceid));
138+
}
139+
135140
} else {
136141
if (!newValue.equals(previousValue)) {
137142
changedResources.add(getResourcePath(resourceid));

0 commit comments

Comments
 (0)