Browse Source
Merge pull request #4347 from thingsboard/lwm2m_fix_bug_double_string
lwm2m: back fix bug format name
pull/4368/head
nickAS21
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/LwM2mTransportServiceImpl.java
|
|
|
@ -713,7 +713,7 @@ public class LwM2mTransportServiceImpl implements LwM2mTransportService { |
|
|
|
private void addParameters(String path, JsonObject parameters, Registration registration) { |
|
|
|
LwM2mClient lwM2MClient = lwM2mClientContext.getLwM2mClientWithReg(registration, null); |
|
|
|
JsonObject names = lwM2mClientContext.getProfiles().get(lwM2MClient.getProfileId()).getPostKeyNameProfile(); |
|
|
|
String resName = String.valueOf(names.get(path)); |
|
|
|
String resName = names.get(path).getAsString(); |
|
|
|
if (resName != null && !resName.isEmpty()) { |
|
|
|
try { |
|
|
|
String resValue = this.getResourceValueToString(lwM2MClient, path); |
|
|
|
|