Commit 050f0d9b072ea2732f9303ab912ac9efd588fa46
Committed by
Andrew Shvayka
1 parent
559aa282
fixed duplicated read/observe requests
Showing
1 changed file
with
1 additions
and
0 deletions
... | ... | @@ -422,6 +422,7 @@ public class DefaultLwM2MUplinkMsgHandler extends LwM2MExecutorAwareService impl |
422 | 422 | private void sendReadRequests(LwM2mClient lwM2MClient, Lwm2mDeviceProfileTransportConfiguration profile, Set<String> supportedObjects) { |
423 | 423 | Set<String> targetIds = new HashSet<>(profile.getObserveAttr().getAttribute()); |
424 | 424 | targetIds.addAll(profile.getObserveAttr().getTelemetry()); |
425 | + targetIds = diffSets(targetIds, profile.getObserveAttr().getObserve()); | |
425 | 426 | targetIds = targetIds.stream().filter(target -> isSupportedTargetId(supportedObjects, target)).collect(Collectors.toSet()); |
426 | 427 | |
427 | 428 | CountDownLatch latch = new CountDownLatch(targetIds.size()); | ... | ... |