Add MQTT Broker
Configure a MQTT Broker to handle communication between Subscribers and Publishers.
- InProject view, right-clickMQTT, selectNew, and selectMQTT Broker.
- InProperties, configure theMQTT Brokersettings:
- Listener port
- The port number to listen on is required. If this variable is used and no port provided, then the default listener will not be started.The default forFactoryTalk Optixis a single listener with one common configuration.
- Max connections
- The maximum number of allowed client connections, expressed as an integer, up to 25.
- Max in-flight messages
- The maximum number of QoS 1 and 2 messages in-flight per client. This includes messages that are partway through handshakes and retried. Set to 0 for no maximum number. Setting to 1 will guarantee in-order delivery of QoS 1 and 2 messages.
- Max QoS
- The maximum QoS supported. Clients publishing at a QoS higher than the maximum will be disconnected.
- Max queued messages
- The maximum number of QoS 1 and 2 messages in queue per client, not including messages that are currently in-flight (being processed by the broker). Setting the value to 0 for no maximum number is not recommended.
- Message size limit
- This option sets the maximum message size that the broker allows. Received messages exceeding this size will not be accepted by the broker. The default value of 0 means that all valid MQTT messages are accepted. MQTT imposes an actual maximum size of 268435455 bytes.
- Retain available
- Set tofalseto disable retained message support. If a client publishes a message with the retain bit set, it will be disconnected if the support is disabled.
- Require client certificate
- By default a TLS-enabled listener will operate in a similar fashion to a https-enabled web server. The server has a certificate signed by a CA and the client will verify that it is a trusted certificate. The overall aim is encryption of the network traffic. Ifyou set require_certificate to true, the client will have to provide a valid certificate to connect to the network. This allows access to the broker to be controlled outside of the mechanisms provided by MQTT.
- CA certificate file
- Defines the path to a file containing the CA certificates. These certificates that will be considered trusted when checking incoming client certificates. In case of CA chain, thecpathis assumed to be hardcoded as\ProjectFiles\PKI\Own\Certs
- Broker certificate file
- Path to the PEM encoded server certificate.
- Broker private key file
- Path to the PEM encoded keyfile.
In
Project view
, in the MQTT
folder, the configured MQTT broker object appears.mqtt broker
broker
subscriber
publisher
Provide Feedback