The MQTT-Server in IP-Symcon acts as a so-called MQTT-Broker. Clients can register with this and get their data from this.
In order to enable easy and convenient integration, it is recommended to use the Configurator for MQTT-Servers. This can be added in the object tree via "+"->"Instance" via the "MQTT Server" quick filter.
IP-Symcon acts as an MQTT-Server (broker) and requires an open server socket interface for this. In the instance configuration of the associated server socket the port can be defined and the connection activated.
Furthermore, a user name and can be specified in the instance configuration of the MQTT-Server. The MQTT clients must then send to the configured port.
After setting up the MQTT configurator, the next step is to add and create device instances.
The server (broker) receives the values and properties of the MQTT devices. The configurator can read this data and displays all devices that have reported.
If a device is not to be displayed, it must be ensured that this device has sent a message to the server.
"Refresh" updates the display of all received topics and their last received user data.
The selected instance can be created via "Create".
The configurator creates the path of the topic with the appropriate categories and the user data variable of the "String" data type. If a different data type is required, this can be changed in the instance.
Devices that can only receive ("subscribe") and not send ("publish") cannot be created using the configurator, as it never receives anything from the devices. For these devices, an MQTT-Device must be created, a topic entered and a data type specified. (See also: Create instance)
Script example for publishing a value on a topic.
The topic is defined by the MQTT device instance.
//Publish of "AGreatValueForPublishing" to the variable with ID 12345 RequestAction(12345, "A great value for publishing");