Browse Source
Merge pull request #5870 from YevhenBondarenko/fix/lwm2m-attributes
[3.3.3] fixed sending shared attributes after sleeping
pull/5897/head
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
1 additions and
1 deletions
-
common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/server/attributes/DefaultLwM2MAttributesService.java
|
|
|
@ -198,7 +198,7 @@ public class DefaultLwM2MAttributesService implements LwM2MAttributesService { |
|
|
|
if (pathIdVer != null) { |
|
|
|
// #1.1
|
|
|
|
if (lwM2MClient.getSharedAttributes().containsKey(pathIdVer)) { |
|
|
|
if (tsKvProto.getTs() >= lwM2MClient.getSharedAttributes().get(pathIdVer).getTs()) { |
|
|
|
if (tsKvProto.getTs() > lwM2MClient.getSharedAttributes().get(pathIdVer).getTs()) { |
|
|
|
lwM2MClient.getSharedAttributes().put(pathIdVer, tsKvProto); |
|
|
|
attributesUpdate.put(pathIdVer, tsKvProto); |
|
|
|
} |
|
|
|
|