fixed duplicated read/observe requests
This commit is contained in:
parent
559aa282ca
commit
050f0d9b07
@ -422,6 +422,7 @@ public class DefaultLwM2MUplinkMsgHandler extends LwM2MExecutorAwareService impl
|
||||
private void sendReadRequests(LwM2mClient lwM2MClient, Lwm2mDeviceProfileTransportConfiguration profile, Set<String> supportedObjects) {
|
||||
Set<String> targetIds = new HashSet<>(profile.getObserveAttr().getAttribute());
|
||||
targetIds.addAll(profile.getObserveAttr().getTelemetry());
|
||||
targetIds = diffSets(targetIds, profile.getObserveAttr().getObserve());
|
||||
targetIds = targetIds.stream().filter(target -> isSupportedTargetId(supportedObjects, target)).collect(Collectors.toSet());
|
||||
|
||||
CountDownLatch latch = new CountDownLatch(targetIds.size());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user