Andrew Shvayka
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
5 deletions
-
common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/ota/DefaultLwM2MOtaUpdateService.java
|
|
|
@ -173,6 +173,11 @@ public class DefaultLwM2MOtaUpdateService extends LwM2MExecutorAwareService impl |
|
|
|
attributesToFetch.add(SOFTWARE_VERSION); |
|
|
|
attributesToFetch.add(SOFTWARE_URL); |
|
|
|
} |
|
|
|
|
|
|
|
var clientSettings = clientContext.getProfile(client.getProfileId()).getClientLwM2mSettings(); |
|
|
|
|
|
|
|
onFirmwareStrategyUpdate(client, clientSettings); |
|
|
|
onCurrentSoftwareStrategyUpdate(client, clientSettings); |
|
|
|
|
|
|
|
if (!attributesToFetch.isEmpty()) { |
|
|
|
var future = attributesService.getSharedAttributes(client, attributesToFetch); |
|
|
|
@ -199,11 +204,6 @@ public class DefaultLwM2MOtaUpdateService extends LwM2MExecutorAwareService impl |
|
|
|
} |
|
|
|
}, executor); |
|
|
|
} |
|
|
|
|
|
|
|
var clientSettings = clientContext.getProfile(client.getProfileId()).getClientLwM2mSettings(); |
|
|
|
|
|
|
|
onFirmwareStrategyUpdate(client, clientSettings); |
|
|
|
onCurrentSoftwareStrategyUpdate(client, clientSettings); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|