Commit 18635bf887bd7b779a93a0eb94b322768f5cf355
Merge branch 'master' of github.com:thingsboard/thingsboard
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -422,7 +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 | + targetIds = diffSets(profile.getObserveAttr().getObserve(), targetIds); | |
426 | 426 | targetIds = targetIds.stream().filter(target -> isSupportedTargetId(supportedObjects, target)).collect(Collectors.toSet()); |
427 | 427 | |
428 | 428 | CountDownLatch latch = new CountDownLatch(targetIds.size()); | ... | ... |