Documentation
MQTT Client
MQTT clients subscribe to an MQTT server and can receive and display values from it.
Setup video-tutorial
Integration in IP-Symcon
In order to enable easy and convenient integration, it is recommended to use the Configurator for the MQTT client. This can be added in the object tree via "+"->"Instance" via the "MQTT Configurator" quick filter.
The desired subscriptions can be created in the instance configuration of the associated MQTT client (gateway). A "#" is the standard and all data of the MQTT server is subscribed to.
In the instance configuration of the associated client socket the host address and the port can be defined and the connection activated. The port must be identical to the port of the MQTT server.
After setting up the MQTT client configurator, the next step is to add and create device instances.
Adding Devices
The client receives the values of the subscribed topics of the MQTT server. The configurator can read this data and displays all the topics that have reported.
"Refresh" updates the display of all received topics and their last received user data.
The selected instance can be created via "Create".
The MQTT client has a preconfigured ClientID. The username and password must match those of the server.
If the "#" is entered as a subscription, all topics of an MQTT server are received.
Messages can then be sent to the MQTT server via the configurator or manually created devices. This then forwards it to all other clients.
Example
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");