Devices compatible with the MQTT protocol
Module Configuration
This document has only information about the device connection settings and its address syntax.
For further Information, see:
Not used in this driver.
Station syntax: <BrokerURL>; <Port>; <ClientID>; [Username]; [Password]; [NetworkSecurity]; [X509Certificate]; <Qos>; <KeepAlive>
Where:
Choosing the Right QoS Level
The connection between sender and receiver is stable (e.g., a test client or front-end application connected via a wired connection).
Occasional message loss is acceptable (e.g., when sending non-critical data at short intervals).
Message queuing is not required.
Every message must be received, but duplicates are acceptable.
The application does not require the overhead of QoS 2 but still needs message delivery guarantees.
Faster delivery is preferred compared to QoS 2.
Receiving every message exactly once is critical (e.g., when duplicate messages could cause issues).
Applications need the highest level of reliability, despite the additional overhead and latency.
When creating solutions that the PrimaryStation IP will be set by script, using the Node properties, you can set the Broker URL to 1.1.1.1 to force it to try establish a connection, avoiding timeouts.
NOTE
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 Configuration
BrokerURL: test.mosquitto.org
Port: 1883
ClientID: MyClient1
Username: <empty>
Password: <empty>
NetworkSecurity: None
X509Certificate: <empty>
QoS: AtLeastOnce
KeepAlive: 10
Station Configuration
BrokerURL: MSI
Port: 1883
ClientID: MyClient1
Username: Guest
Password: 1234
NetworkSecurity: None
X509Certificate: <empty>
QoS: AtLeastOnce
KeepAlive: 10
Station Configuration
BrokerURL: MSI
Port: 8883
ClientID: MyClient1
Username: <empty>
Password: <empty>
NetworkSecurity: TLSv1.0
X509Certificate: C:/Certificates/mqtt_ca.der
QoS: AtLeastOnce
KeepAlive: 10
Station Configuration
BrokerURL: MSI
Port: 8883
ClientID: MyClient1
Username: Guest
Password: 1234
NetworkSecurity: TLSv1.2
X509Certificate: C:/Certificates/mqtt_ca.der
QoS: AtLeastOnce
KeepAlive: 10
The syntax for the MQTT communication points is called Topic:
E.g.: USA/Houston/Station1/Level
MQTT Revision History | |
---|---|
Version | Notes |
3.0.0.3 | Initial release on new documentation standards. |