Add MQTT Subscriber
Configure a MQTT Subscriber to subscribe messages to MQTT Broker on defined Topic. If a client subscribes to a Topic, it will receive all the messages that the broker forwards for that topic.
TIP:
The subscriber can receive variables from other
FactoryTalk® Optix™
clients, and other clients using the supported format.- In Project view, right-clickMQTT, selectNew, and selectMQTT Subscriber.
- InProperties, go to and configure the following properties:
- Folder
- This folder node contains variables on which the Subscriber will copy the values read from the broker.
- Topic
- A single topic on a Broker to subscribe. Topic is required.
- QoS
- MQTT Quality of Service (QoS), defines the guarantee of delivery for a specific message (0, 1, 2).0 - At most once (May lose messages).1 - At least once (Guarantees the message delivery but potentially duplicate messages).2 - Exactly once (Ensures messages are delivered exactly once without duplication).
In
Project view
, in the MQTT
folder, the configured MQTT Subscriber
object appears.Provide Feedback