Add MQTT Client
Configure a MQTT client node to enable connection with MQTT Broker. For publishing and subscribing to MQTT Broker it is needed to create MQTT Pulisher node and/or MQTT Subscriber node
- In Project view, right-clickMQTT, selectNew, and selectMQTT Client.
- InProperties, configure theMQTT Clientsettings:
- Broker address
- The address of the broker to connect to.
- Port
- Communication port number.
- ClientID
- The Client identifier that is unique on the server.
- SSL/TLS Enabled
- Enabling secure connection between FT Optix MQTT Client and MQTT Broker. Once activated 'mqqts' protocol is being used.
- Validate broker certificate
- Activates/deactivates validation process of MQTT broker certificate. During the SSL certificate verification process, the FT Optix MQTT client checks the digital signature of the broker certificate to ensure that it has been issued by a trusted certificate authority (CA). The client also verifies that the certificate has not expired.
- CA certificate file
- A Certificate Authority certificate that has signed the server certificate on the MQTT Broker. It is required once SSL/TLS is activated to establish secure connection with the broker. It must be found in\FactoryTalk Optix\Projects\ProjectName\ProjectFiles\PKI\Own\Certsfolder.
- Client certificate file
- FT Optix MQTT Client certificate. A client certificate identifies the client just like the server certificate identifies the server. If this property stays empty only broker certificate is user for authentication. It must be found in\FactoryTalk Optix\Projects\ProjectName\ProjectFiles\PKI\Own\Certsfolder.
- Client private key file
- FT Optix MQTT Client private key. It must be found in\FactoryTalk Optix\Projects\ProjectName\ProjectFiles\PKI\Own\Certsfolder.
- User Identity type
- Specify user when accessing the MQTT Broker:
- Anonymous (default) - No login is performed, access the server as Anonymous user
- Username/Password - Specify a username and password combination for logon.
In
Project view
, in the MQTT
folder, the MQTT Client
object appears.- Add MQTT Publisher and MQTT Subscriber. See:
mqtt client
Provide Feedback