Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Preconfiguration "MQTT - Communication with MQTT broker - Communication set with data and panel"

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

This preconfiguration can be used with the objects: PmaFolder or PmaRoot.

 
The preconfiguration creates an object of the PmaFolder type with subfolder Test and objects PmaComm, PmaSequencer and PmaTimer.
 

CommMQTT - PmaFolder

Main object configured as communication driver of the service. The PmaFolder object has methods for sending SendConnect, SendDisconnect, SendPublish, SendSubscribe and SendUnSubscribe. For receiving messages, the "OnReceive" method can be used. The "HexaStringToText" method can be used for converting the text data (ANSII only) from HaxaString to text.

 
The PmaComm object is configured by the PmChar protocol to connect to the broker. It has two subobjects PmaCommMsg configured as Master (for message sending) and Slave (for message receive). Methods and events of these objects provide communication functionality.
 
The PmaSequencer object Sequencer provides sequential sending of requested commands.
 
The PmaTimer object Ping keeps the connection open between the client and the broker.
 

Test - PmaFolder

The folder contains testing panel "TestPanel" and auxiliary PmaData object. The panel serves for testing and viewing the received data. the "OnReceive" method processes received data to be displayed in the testig panel.
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, empty string, spaces and the first character must not be a number.

Default: "CommMQTT"

Broker TCP addressBroker TCP address
Broker portBroker port
1883 (default) - unencrypted transmission
Client identifierClient identifier on broker
Assigned name
Assigned password

History:
Pm9.00.03: Created
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
 
- MQTT - Communication with MQTT broker - Communication set with data and panel
 
 
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice