Connection type
Data Type | Example |
---|---|
Buffer | A raw data buffer |
String | UTF-8 encoded string |
Number | 32-bit intiger |
Boolean | True/False |
null | null value |
When creating an MQTT connection in Data-Talk, specify whether the connection is located in Payload or Topic. Afterward, proceed to the next tab, where you specify all other necessary information about your MQTT broker, such as IP, port, username, and password.
In the next tab, specify the topic to which Data-Talk will listen. If everything is specified correctly, Data Talk will receive a response from the MQTT broker.
You select a unique identifier, which will be used as “address” in the tags database.
So, when adding a tag to the tags database with an MQTT connection, you must select the UDT type, which will then automatically fill up the tags. You also have to specify a unique identifier in the address tab. If everything is specified correctly, you should be able to retrieve values when clicking on the “READ VALUES” button.
Keep in mind that MQTT tags are UDT, so to set log group/limits /scale, etc… you must do it first in the UDT section, and then it will get applied as well in the tags database.
gif jak přidat MQTT tag a celý process s tím UDT