Breadcrumbs

Step 1 Set up a broker and a client app

MQTT is based on clients communicating with a server, often called a "broker". A client may be either a publisher of information or a subscriber. Each client can connect to the broker. 


Image result for Broker mqtt


Set up a broker


The MQTT connector works with any supported MQTT broker.

Setup mosquitto server on windows

  1. Download mosquito from the official website https://mosquitto.org/download/
    image2020-10-20_14-59-55.png

  2. Install the server.

    image2020-10-20_15-1-19.png

  3. Go to the task manager → services and make sure that the service is running.

    image2020-10-20_15-34-23.png

Set up the client application


To be able to see messages sent by Niagara through the broker you will need another client. You can use this application https://mqtt-explorer.com/

(Or you can use your own application)


  1. Download the application and launch the exe if you're running Windows.

  2. Open the app choose localhost and the port then connect.

    image2020-10-20_15-39-25.png

Next Step


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