Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Easy Heading Macro
headingIndent40
navigationTitleOn this page
selectorh2,h3
wrapNavigationTexttrue
navigationExpandOptiondisable-expand-collapse

This document has only the specific information about the device connection settings and its address syntax. 

Refer to the User Guide for more information on the Device Module.



Summary

Communication Driver Information
Driver nameMQTT
Assembly NameT.ProtocolDriver.MQTT
Assembly Version3.0.3.0
Available for LinuxFalse
Devices supported 

Any device compatible with the MQTT protocol

ManufacturerN/A (Not Applicable)
ProtocolMQTT (Message Queuing Telemetry Transport) is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol
InterfaceTCP/IP
PC RequirementsEthernet port
Implemented MethodsConnect, Disconnect, Subscribe, UnSubscribe and Publish



Channels Configuration

Protocol Options

Not used in this driver.



Nodes Configuration

Station Configuration

Station syntax: <BrokerURL>;<Port>; <ClientID>;[Username] ;[Password]; [NetworkSecurity] ; [X509Certificate]; <Qos>; <KeepAlive>

 Where:

  • <BrokerURL>: MQTT Broker (Server) name. It must be the same name is configured in the bind_address parameter in the Broker.
  • <Port>: MQTT Broker port. It must be the same port is configured in the Broker to be listening. Default value is 1883.
  • <ClientID>:Indicates the client identification used for connecting to the MQTT Broker.
  • [Username]:optional, Username defined on MQTT Broker. This will be requested if the Broker has the allow_anonymous parameter as false.  Whether this parameter is set as true on Broker, keep this field empty. Default value is empty.
  • [Password]:optional, Password defined on MTQQ Broker.  This will be requested if the Broker has the allow_anonymous parameter as false.  Whether this parameter is set as true on Broker, keep this field empty. Default value is empty.
  • [NetworkSecurity]: optional, If the Broker works using certificates, this field is mandatory and must match the same option defined in the Broker. Options are: None, TLSv1.0, TLSv1.1 and TLSv1.2.
  •  [X509Certificate]:  optional, Path of X509 Certificate using TLS v1.0. This must be the complete path of X509 certificate in the client computer. The certificate must be installed in the computer.
  • <QoS>: Quality of Service (QoS) is an agreement between sender and receiver of a  message regarding the guarantees of delivering a message. There are three QoS levels:
    • AtMostOnce
    • AtLeastOnce
    • ExactlyOnce
  • <KeepAlive>: Ensures that the connection between the Broker and Client is open and both parties are aware of the connection. Default value is 1 second.


Info

If used 1.1.1.1 in the broker URL it will try establish the connection. This is to avoid timeouts, when creating solutions that the PrimaryStation IP will be set by script, using the Node properties.


Info
titleNOTE

One of the easiest ways to install the certificate on client computer is to use the wizard to import the certificates is through the "Internet Options" to import the certificate in the "Trusted Root Certification Authorities”. You need to import the certificate in DER format.



Station Examples

 1. Broker configuration with no Username and Password and no SSL/TLS

 Station Configuration

BrokerURL:  test.mosquitto.org 

Port: 1883

ClientID: MyClient1

Username:  <empty>

Password: <empty>

NetworkSecurity: None

X509Certificate: <empty>

QoS: AtLeastOnce

KeepAlive: 1

2. Broker configuration with Username and Password and no SSL/TLS

 Station Configuration

BrokerURL:  MSI 

Port: 1883

ClientID: MyClient1

Username: Guest

Password: 1234

NetworkSecurity: None

X509Certificate: <empty>

QoS: AtLeastOnce

KeepAlive: 1

 3. Broker configuration with SSL/TLS and no Username and Password

 Station Configuration

BrokerURL:  MSI 

Port: 8883

ClientID: MyClient1

Username:  <empty>

Password:  <empty>

NetworkSecurity: TLSv1.0

X509Certificate:  C:\Certificates \mqtt_ca.der

QoS: AtLeastOnce

KeepAlive: 1

4. Broker configuration with SSL/TLS and  Username and Password

 Station Configuration

BrokerURL:  MSI 

Port: 8883

ClientID: MyClient1

Username:  Guest

Password: 1234

NetworkSecurity: TLSv1.2

X509Certificate:  C: \mqtt_ca.der

QoS: AtLeastOnce

KeepAlive: 1



Points Configuration

Address

The syntax for the MQTT communication points is called Topic:

  • Topic is a string, which is used by the broker to filter messages for each connected client. A topic consists of one or more topic levels. Each topic level is separated by a forward slash (topic level separator). Wildcards are not supported.

E.g.: USA/Houston/Station1/Level



Driver Revision History

MQTT Revision History
Version Notes
3.0.0.3Initial release on new documentation standards.



In this section...

Page Tree
root@parent
spacesV10