Setting up the Abstract MQTT driver network

This procedure explains how to establish the connection between Niagara and Sine application.
Prerequisites: The Niagara station is licensed for AbstractMQTT driver, and the device certificate (AWSCert.crt) is imported into Niagara station.
Importing device certificate (AWSCert.crt)
Perform the following steps:
  1. Expand the station property in Workbench and under the Nav tree menu sidebar and navigate to Config > Services > Platform Services > CertManagerService.
    Image
    Image
  2. Click on User key Store tab and select Import button and import the device certificate (AWSCert.crt) shared by Tridium team.
    Image
  3. Click on the open palette from the Palette menu sidebar and search for AbstractMqttDriver. Drag the AbstractMqttDriverNetwork component from the AbstractMqttDriver palette to the Drivers folder (under Config) in the Nav tree.
  4. Under the AbstractMqttDriver palette, expand the Devices folder and drag the AwsMqttDevice component from the palette to the added AbstractMqttDriverNetwork in the Nav tree.
    Image
  5. Double-click on the added AwsMqttDevice in the Nav tree to open the AX property Sheet. Configure the AwsMqttDevice as follows;.
    1. Change Keep Alive to 65535
    2. Expand the authenticator in the property sheet and add Broker Endpoint (This needs to be provided by the Tridium or Sine Team).
    3. Add a unique Client ID in the authenticator. Add the API Key from VisitorIntegrationService here due to its uniqueness.
    4. In Certificate Alias and from the drop-down list, select the device certificate (AWSCert.crt) previously provided and added to the User Key Store in the PlatformServices
    Image
  6. Click Save. Right click on AwsMqttDevice, click Actions and then Connect..
    If the connection is successful, the Status Message property value shows Connected.
  7. Expand AwsMqttDevice > Points and click on Discover.
  8. From the discovered points, pull the subscribe point and publisher point to database and edit the parameters as follows:
    1. For publish point, set Type to MqttStringPublishPoint. Add topic as APIKEY/sine topic-ack. Here APIKEY is the api key stored in the VisitorIntegrationService.
    2. For subscribe Point, Type will be MqttStringSubscribePoint. Add topic as APIKEY/sine topic. Here APIKEY is the api key in the VisitorIntegrationService. Please note that the topic is case sensitive
      Image
  9. Right click the Proxy Ext of subscribe point and click Actions > Subscribe.