How-To Guides
Integration Guides

AWS SiteWise Integration Guide

14min

Review the following guide for setting up an integration between Litmus Edge and AWS SiteWise.

Before You Begin

You need to create an AWS account. See Setting up an AWS account to learn more.

Refer to the following AWS resources to learn more about AWS SiteWise:

Step 1: Collect AWS SiteWise Connection Parameters

You will need the following parameters to configure the connection in Litmus Edge.

Step 2: Add AWS SiteWise Connector in Litmus Edge

Once you have collected the required AWS connection parameters, follow the steps to Add a Connector and select the AWS SiteWise Connector provider.

Configure the following parameters.

  • Name: Enter a name for the connector.
  • Region: Enter the region name you collected in Step 1 that is associated with your AWS account.
  • Access key: Paste the access key collected in Step 1.
  • Secret access key: Paste the secret access key collected in Step 1.
  • Subscribe interval: Enter the subscription interval in seconds. Subscribe interval defines the time in seconds between consecutive data update notifications for a subscribed asset property, specifying the frequency at which the system checks and receives updates on the specified property within the IoT SiteWise platform.
  • Number of batch messages: Enter the number of batch messages to publish. This value refers to the quantity of grouped data transmissions.
  • Throttling limit: The maximum number of messages per second to be processed. The default value is zero, which means that there is no limit.
  • Persistent storage: When enabled, this will cause messages to undergo a store-and-forward procedure. Messages will be stored within Litmus Edge when cloud providers are online.
  • Queue Mode: Select the queue mode as lifo (last in first out) or fifo (first in first out). Selecting lifo means that the last data entry is processed first, and selecting fifo means the first data entry is processed first.

Step 3: Enable the Connector

After adding the connector, click the toggle in the connector tile to enable it.

Document image


If you see a Failed status, you can review the Connector Logs and relevant error messages.

Step 4: Set up Connection (Outbound or Inbound) with AWS SiteWise

You have the option of setting up an outbound or inbound connection.

Set up Outbound Connection

To set up an outbound connection, you will need to create a DeviceHub device and tags. The tags will be used to send data to AWS SiteWise.

Step a: Add Device



Step b: Add Tags



Step c: Create Outbound Topics for Connector

You will now need to import the tags you added to the connector as topics.

Note: If there any existing inbound topics already created for the connector, disable them before creating the outbound topics.



After adding all required topics, navigate to the Integration overview page and ensure the connector is not disabled and still shows a CONNECTED status.

Step d: Enable Topics



Step e: Verify Connection

You can now access your AWS account to verify that data is successfully being sent from Litmus Edge. See Ingesting data to AWS IoT SiteWise to learn more.

Set up Inbound Connection

You have the option of subscribing to data from AWS SiteWise.

Step a: Create Inbound Topics for Connector

You will create topics for the connector that will subscribe to data from associated AWS SiteWise topics.

Note: If there any existing outbound topics already created for the connector, disable them before creating the outbound topics.

To create inbound topics:

  1. Navigate to Integration.
  2. Click the connector tile.
  3. Click the Topics tab.
  4. Click the Add a new subscription icon. The Data Integration dialog box appears.

    Add a new subscription icon
    Add a new subscription icon
    
  5. Configure the following parameters.
    • Data Direction: Select Remote to Local - Inbound.
    • Local Data Topic: Enter a topic name that will be used for subscribing to data in Litmus Edge.
    • Remote Data Topic: Copy and paste the associated topic name from AWS SiteWise.
    • Enable: Select the toggle to enable the topic.
  6. Click Yes to add the topic.
  7. From the connector tile, ensure the connector is not disabled and still shows a CONNECTED status. Also verify the topic shows an Enabled status.

Step b: Verify Connection in Litmus Edge

You have several options for verifying the connection in Litmus Edge. When subscribing to the data, you will need to use the Local Data Topic name configured in the previous step.

You can visualize the incoming data using one of the dedicated Applications such as Grafana.

You can also view the data in the Flows Manager and Analytics areas of Litmus Edge.