Add MQTT Subscriber

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.
  1. In Project view, right-click
    MQTT Client
    , and select
    New
    MQTT Subscriber
    .
  2. In , go to
    Subscriptions
    Subscription1
    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 a
    Variable to write
    and 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
Have questions or feedback about this documentation? Please submit your feedback here.