Breadcrumbs

Step 2 Set up the MQTT connector for devices, points and references

Let's configure Niagara as a MQTT client and start sending your first messages over MQTT.

Set up the connector


  1. Open the palette btibMqttConnector and drag & drop the MqttConnector component inside Services > BtibService > External Connectors > Realtime Connector

    Screenshot 2019-08-07 at 14.44.00.png

  2. Double click on the connector and fill all the information of the server

    image2020-10-20_15-50-12.png


Set up a Device


  1. From the btibMqttConnector palette, drag and drop the MqttDeviceExt to a device or anything that represents a group of points (it might be a Node, a folder etc.)

    image2020-10-20_16-7-42.png


    If you have only one connector the extension will pick it up automatically.if you have multiple connectors, select the one in the list and hit save

Set up a point


  1. From the btibMqttConnector palette, drag and drop the MqttPointExt to a point.

    image2020-10-20_16-12-54.png

  2. Edit the device query to point to your device which contains the Device Extension. By default, the extension will look for the parent device but you can change it to use any other component that contains a MqttDevice extension.


image2020-5-25_16-24-46.png


Setup a reference


  1. From the btibMqttConnector palette, drag and drop the MqttReferenceExt to a point.

    image2020-10-20_16-29-23.png

  2. Edit the device query to point to your device which contains the Device Extension.


image2020-10-20_16-30-48.png




Next step


Step 3 Send messages to MQTT broker from Niagara