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:
- Expand the station property in
Workbench and under the Nav tree menu sidebar and navigate to .
- Click on User key Store tab and select Import button and import the device certificate (AWSCert.crt) shared by
Tridium team.
- 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.
- Under the AbstractMqttDriver palette, expand the Devices folder and drag the AwsMqttDevice component from the palette to the added AbstractMqttDriverNetwork in the Nav tree.
- Double-click on the added AwsMqttDevice in the Nav tree to open the AX property Sheet. Configure the AwsMqttDevice as follows;.
- Change
Keep Alive to 65535
- Expand the authenticator in the property sheet and add
Broker Endpoint (This needs to be provided by the
Tridium or Sine Team).
- Add a unique
Client ID in the authenticator. Add the API Key from VisitorIntegrationService here due to its uniqueness.
- 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
- Click Save. Right click on AwsMqttDevice, click Actions and then Connect..
If the connection is successful, the Status Message property value shows Connected.
- Expand and click on Discover.
- From the discovered points, pull the subscribe point and publisher point to database and edit the parameters as follows:
- For publish point, set
Type to MqttStringPublishPoint. Add topic as APIKEY/sine topic-ack. Here APIKEY is the api key stored in the VisitorIntegrationService.
- 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
- Right click the Proxy Ext of subscribe point and click .