Kepware: Advanced templates in Iot-gateway
Hi,
I am using Iot-gateway in Kepware, and I want to only send messages if they have quality set to true. I tried to use Advanced templates, but I could not find any guide anywhere on how to use the directives there. I tried this, but got an error.
{
"timestamp": |SERVERTIMESTAMP|,
"machine_ID": "m_id1",
"values": [
|#each VALUES|
{"id": "|TAG|", "v": |VALUE|, "q": |QUALITY|, "t": |TIMESTAMP| } |#unless @last|,|/unless| |#unless |QUALITY|="false"||/unless|
|/each|
]
}

Please help.

