Preconfiguration "MQTT Server - Receiving and processing data sent by publish client - Communication set with data and panel"

Configuration of the MQTT communication. This preconfiguration allows to receive and process data sent by the client of the publish type. This is done directly into the application without the need to use MQTT broker.

This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the local object menu or by pressing the Insert key after selecting the object) and is included in the group: "/ Communication / Protocols and other communications / MQTT".
This preconfiguration can be created in the object: PmaFolder or PmaRoot.

The preconfiguration creates an object of the PmaFolder type with objects PmaComm, PmaData, PmaPanel and PmaTimer.

MQTT_Server - PmaFolder
Main object configured as communication driver of the service. The PmaFolder object has the method OnPublish that is used for data receipt and processing.

The PmaComm object is configured by the PmChar protocol. It has two PmaCommMsg subobjects configured as Slave (for message receipt). Methods and events of these objects provide communication functionality.

The PmaTimer object checks whether the logged in client maintains connection.

Test - PmaFolder The folder contains testing panel "TestPanel" and auxiliary PmaData object. The panel serves for testing and viewing the received data.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the tree of Pma objects. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent chars), empty string, spaces and the first character must not be a number.
Default: "MQTT_Server"
Broker portBroker port
1883 (default) - unencrypted transmission
Client identifierClient identifier on broker
Assigned name
Assigned password

Pm9.00.18: Created
PROMOTIC 9.0.25 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.