edinn M2 adds an MQTT client (3.1.1 Specification) which means it can connect to MQTT brokers (or servers).

To access the data of a signal, you configure a topic (equivalent to an item in OPC).

The obtained token value can come without any wrapper and would be treated in the same way as an OPC token or included in a string in JSON format. Before you can extract the value, you need to configure the JSON template of the data.

How to configure JSON template.

Data example: {"d":{"value":[620]},"ts":"2022-09-22T04:52:32.797408"}

The value in this case is the number 620 in square brackets.

Template for this example: {"d":{"value":[#value#]},"ts":"2022-09-22T04:52:32.797408"}

Where we have replaced the value with the #value# tag, so that edinn can extract this value from the response.