ApisMQTTClientBee

This module can be used to subscribe to messages on topics from a MQTT broker. The messages can be decoded and stored in Value Items. Currently we support simple Json formated messages. See Json messages for details. To configure this module, set up the needed property, MQTTAddress, MQTTPort, MQTTClient (any textstring), MQTTServicelevel, MQTTTransport (TcpServer or TcpServerTls if security is needed).

By using secure communication (TcpServerTls) a certificate from the server will be added under default certificatepatch (..instancename/pki/rejected/xxxx.crt) . This certificate should be checked and moved to the thrusted directory to allow secure communication with this broker.

When these parameters are ok then the status-item shall show value "Connected". Add a TopicItem by right-clicking the module on the left side. Configure the Topic by setting the correct topic to listen to. It is possible to listen to several topics. The value for topic-item will go up by one as it receives messages from the broker.

Then add ValueItem. Connect the Item to a topic by the property "TopicItem", and then select the correct textvalues for properties "Key", "TimeId", "QualityId", and "ValueId", (See JSONMessage). When these properties are correctly set up, the value-item will show quality "Good".

"Auto create items" property in TopicItem can also be turned on to automatically decode the message from the broker and create the value items instead of having to manually set up the value items.

Provider: Prediktor

Properties

Commands And Events

Json messages

The ApisMQTTClientBee module has the following item types

Topic

Value Item

Status