Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This section contains one example for the MQTT agent.

 Image Removed

...

MQTT_workflow_example.pngImage Added


In the above example, the MQTT agent sends any of these 3 UDR types: Error, PublishAck, or SubscribeResponse to the Analysis agent, which contains the following code:

...

With this code, the Analysis agent will:

  • Debug the output of the MQTT agent.

  • If the received UDR is of the SubscriberResponse type, the UDR will be populated into a SubscribeResponse type UDR called resp.

  • Create a UDR of Publish type called pub.

  • Set the qos to 1, to indicate that the message will be

...

  • published with the At Least once QoS.

  • Set retain to true.

  • Set the topic to test/

  • Populate the Data with the Data field from the resp UDR.

  • Routes the pub UDR back to the MQTT agent.

...