cLAN and Middleware

Connection between the cLAN-MQ and the broker

cLAN-MQ to broker connection configuration

Communication with Middleware uses a TCP connection. To be able to establish the connection it is necessary to:

Configuring the broker connection

The broker's address and port are configured on the MQTT tab

mqttbroker1

mqttbroker2

 

Enabling the connection with the broker

When this option is enabled, we tell the cLAN-MQ to establish connection with the specified configuration. If this option is disabled the cLAN-MQ will not establish outgoing connections.

Host - Port

The IP address or URL of the server where the broker is running must be entered here. The cLAN-MQ can resolve URLs using DNS.

Unencrypted connections default port is 1883. Encrypted port is tipically 8883.

Encrypt

The cLAN-MQ can establish the link without encription ("No encryption") or using TLS 1.2 and TLS 1.0

CA signed server certificate: No cerfificate required.

CA certificate only: You must upload the CA certificate for validation

Self signed certificates: You must upload CA certificate, client certificate and client key.

Client ID, Username y Password

This parameters must match the ones configured on the broker.

Keep Alive

Time in seconds to send the MQTT keep alive message (to keep the link alive in case there's no other MQTT message)

Certificates upload:

warn

You must be connected to the cLAN to upload the certificates.

They are not included in the configuration

After pressing the "Certificates" this window will pop up.

mqttbroker2

File format must be PEM

Advanced

adv

Access password

This password can be used to protect local configuration (over the LAN)

Monitoring the cLAN-MQ to broker connection

Monitoring the connection in the cLAN-MQ

To verify whether the entered configuration into the cLAN-MQ is the correct one we have the possibility of monitoring the status of the connection.

To access the monitoring screen of the configurator click on the “Monitor” button. Then, the following screen will be displayed:

Link State

The TCP connection state can also be monitored. The possible TCP connection states are:

2020-11-19