Skip to content
Discussion options

You must be logged in to vote

Dot-notations weren't the issue, ThingsBoard not parsing every JSON object is. Basically, when connecting KEPServerEX 6 with ThingsBoard, I can't use the message template below:

{
 "timestamp": |SERVERTIMESTAMP|,
 |#each VALUES|
  "|TAGNAME|":|VALUE| |#unless @last|,|/unless|
 |/each|
}

because ThingsBoard doesn't accept it, which I misunderstood as ThingsBoard don't work with dot notations. However, the below message template works:

{
 "timestamp": |SERVERTIMESTAMP|,
 "values": {
   |#each VALUES|
    "|TAGNAME|":|VALUE| |#unless @last|,|/unless|
   |/each|
 }
}

but it printed in the Latest Telemetry section as "key: values" and "value: {"TAGNAME1":VALUE1,...}", and I can't access the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jaden021204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant