- Getting started
- Creating projects
- OPC UA
- Graphic objects
- Predefined graphic objects
- Object and variable references
- Extending projects
- NetLogic
- Tutorials
- Dynamic links tutorial
- Graphic objects tutorial
- NetLogic tutorial
- OPC UA tutorial
Add MQTT Subscriber
Configure a MQTT Subscriber to subscribe messages to MQTT Broker on a defined Topic.
If a client subscribes to a Topic, it receives all 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 Client, and select .
- InProperties, go to and configure:
- Subscriptions
- Default JSON Subscription- Expected payload format is Default JSON. You must define a folder with variables that the Subscriber will modify with payload values.Plain Text Subscription- Expected payload format is Plain text. You must define aVariable to writeand add to it a dynamic link to a variable that the Subscriber will modify with payload value.
- Topic
- A single topic on a Broker to subscribe.
- QoS
- MQTT Quality of Service (QoS), defines the guarantee of delivery for a specific message (0, 1, 2).0- At most once (loss of messages is possible).1- At least once (ensures message delivery whti possible duplicate messages).2- Exactly once (ensures message delivery without duplication).
In
Project view
, in the MQTT
folder, the configured MQTT Subscriber
object appears.Provide Feedback