Browse Source

JsonConverter: attributesFromMsg javadoc names both sources of the keys

pull/16748/head
dshvaika 2 weeks ago
parent
commit
ff9d2db9f8
  1. 3
      common/proto/src/main/java/org/thingsboard/server/common/adaptor/JsonConverter.java

3
common/proto/src/main/java/org/thingsboard/server/common/adaptor/JsonConverter.java

@ -684,7 +684,8 @@ public class JsonConverter {
/**
* Turns a rule engine message's data into attributes, with the current time as their ts.
* Honours the keys the integration marked to stay strings in the message metadata.
* Honours the keys marked to stay strings in the message metadata: by the integration on an uplink, and by the save
* attributes node on its attributes updated notification.
*/
public static List<AttributeKvEntry> attributesFromMsg(TbMsg msg) {
return convertToAttributes(JsonParser.parseString(msg.getData()), System.currentTimeMillis(), getTypeCastDisabledKeys(msg.getMetaData()));

Loading…
Cancel
Save