fixed getOrInitSwInfo
This commit is contained in:
parent
39ff7af478
commit
621752cb7a
@ -552,7 +552,7 @@ public class DefaultLwM2MOtaUpdateService extends LwM2MExecutorAwareService impl
|
|||||||
if (info == null) {
|
if (info == null) {
|
||||||
var profile = clientContext.getProfile(client.getProfileId());
|
var profile = clientContext.getProfile(client.getProfileId());
|
||||||
info = new LwM2MClientSwOtaInfo(endpoint, profile.getClientLwM2mSettings().getSwUpdateResource(),
|
info = new LwM2MClientSwOtaInfo(endpoint, profile.getClientLwM2mSettings().getSwUpdateResource(),
|
||||||
LwM2MSoftwareUpdateStrategy.fromStrategySwByCode(profile.getClientLwM2mSettings().getFwUpdateStrategy()));
|
LwM2MSoftwareUpdateStrategy.fromStrategySwByCode(profile.getClientLwM2mSettings().getSwUpdateStrategy()));
|
||||||
update(info);
|
update(info);
|
||||||
}
|
}
|
||||||
return info;
|
return info;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user