MVI69E-LDM-MQTT ♦ MQ Telemetry Transport
CompactLogix® Platform
5
MQTT SparkplugB Example
Use this chapter to install, configure, and run the MVI69E-LDM module with MQTT
Sparkplug-B communications. Set the configuration file parameters, configure the
CompactLogix PLC, and begin data exchange.
5.1
Config.json Configuration Requirements
This section give sample configuration settings when using Sparkplug-B.
config.json "MqttServer" section file parameters
Parameters
{
"MqttServer": {
"Type":
"Host":
"Port":
"Timeout"
"DoNotUseTls":
"DisableCertificateValidation":
"RootCaFileName":
"ClientCertPublicFileName":
"ClientCertPrivateFileName":
"UserName":
"Password":
"GroupId":
"UUID":
"ClientId":
"WillTopic":
"WillMessage":
"PublishRetryInterval":
"MaxPublishRetries":
"MaxPublishInterval":
"PublishTopicPrefix":
"SubscribeTopicPrefix":
"PublishQOS":
"PublishRetain":
},
The remaining section of the "config.json" files are applicable to the PLC communications. No editing is
required.
ProSoft Technology, Inc.
Values for unencrypted
messaging
"Sparkplug",
"192.168.4.200",
1883,
5000,
1,
1,
"root ca.cer",
"client_cert_public_key.cer", "client_cert_public_key.cer",
"client_cert_private_key.pe
m",
"ldm",
"ldm",
"ProSoft",
"UniqueUUID",
"MVI69E-1",
"spBv1.0/ProSoft/NDEATH/
MVI69E-1",
"Node MVI69E-1 is
disconnected",
1000,
10,
5000
"",
"",
1,
1,
MQTT SparkplugB Example
Quick Start Guide
Values for encrypted
messaging
"Sparkplug",
"192.168.4.200",
8883,
5000,
0,
0,
"root ca.cer",
"client_cert_private_key.pe
m",
"ldm",
"ldm",
"ProSoft",
"UniqueUUID",
"MVI69E-1",
"spBv1.0/ProSoft/NDEATH/
MVI69E-1",
"Node MVI69E-1 is
disconnected",
1000,
10,
5000
"",
"",
1,
1,
Page 24 of 54
Need help?
Do you have a question about the MVI69E-LDM-MQTT and is the answer not in the manual?