Configuring Generic Mqtt Brokers; Generic Mqtt Broker; Online Mqtt Brokers; Install Mqtt Locally - ProSoft Technology MVI69E-LDM-MQTT Quick Start Manual

Mq telemetry transport compactlogix platform
Table of Contents

Advertisement

MVI69E-LDM-MQTT ♦ MQ Telemetry Transport
CompactLogix® Platform
9.2

Configuring Generic MQTT Brokers

An example configuration file is located in the mqtt-ldm-sample-app-mvi69e\test-
generic folder.

9.2.1 Generic MQTT Broker

This is located in the mqtt-ldm-sample-app-mvi69e\test-generic folder.
The file config.json contains a default configuration file, which is received during a
firmware update. This file contains settings for the generic MQTT broker. There are no
specific requirements pertaining to Client ID, Topic Namespace, or other settings.
The node MqttServer of the configuration file has the following default values:
Parameter
Type
HostName
Port
DoNotUseTIs
You can connect to different MQTT brokers by modifying only the HostName field.
Different installations of MQTT brokers are considered in the next section.

9.2.2 Online MQTT Brokers

There are couple of MQTT brokers available online:
mqtt.eclipse.org
test.mosquitto.org
For both, the port number for unencrypted TCP communication is 1883.
For encrypted communication: 8883.
Communication Type
Unencrypted
Encrypted

9.2.3 Install MQTT Locally

If complete control over the MQTT broker is needed, or if there is no access to the
Internet from the network where the MVI69E-LDM is installed, it is possible to use a local
version of the MQTT broker.
For example, open-source broker Mosquitto can be downloaded from
https://mosquitto.org/download/. Once installed, it starts as a Windows service Mosquitto
Broker and is ready to accept connections at port 1883.
In the configuration file, if the MqttServer/HostName field is set to the IP address of the
MQTT broker, values for the PLC should be published into it. This will verify that you can
use third-party MQTT clients.
As a result, the tag value in the PLC is updated and the newly published values are
reported in MQTT Explorer and plotted on the history graph.
ProSoft Technology, Inc.
Description
Set to Generic.
Set to 192.168.0.254 (should be modified to IP address of the PC where
MQTT broker is running).
Set to 1883.
Set to 1 (unencrypted communication mode).
Port Number
1883
8883
Configuration File Details
Quick Start Guide
Page 45 of 54

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MVI69E-LDM-MQTT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents