Configuration of the MQTT
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 created in the object: PmaFolder
The preconfiguration creates an object of the PmaFolder
type with subfolder Test
and objects PmaComm
Main object configured as communication driver of the service. The PmaFolder
object has methods for sending SendConnect
. For receiving messages, the "OnReceive
" method can be used. The "HexaStringToText"
method can be used for converting the text data (ANSII
only) from HexaString
object is configured by the PmChar
protocol to connect to the broker. It has two PmaCommMsg
subobjects configured as Master
(for message sending) and Slave
(for message receive). Methods and events of these objects provide communication functionality.
provides sequential sending of requested commands.
keeps the connection open between the client and the broker.
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 for displaying in the testing panel.
These configurators can be set before the preconfiguration is created:
|The name of created object||Name 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.
|Broker URL address||Broker URL address|
|Broker port||Broker port
1883 (default) - unencrypted transmission
|Client identifier||Client identifier on broker|