Skip to main content
Version: 2.3.x

AWS IoT Core

Go to Cloud Connectivity > AWS IoT Core to enable/disable the service.

To connect to AWS IoT Core, do the following:

  1. Click img to configure the connection settings.
  2. Enter Host and Port (default: 8883).
  3. Enter ThingID.
  4. Select a message type for QoS.
  5. Upload the X.509 Certificate, Private Key, and (optional) Trusted Root CA.
  6. Click SAVE.

img

Telemetry Message Settings

The simplest message type for sending IoT device data to your IIoT applications is the telemetry message. To create a telemetry message for the connection, do the following:

  1. Go to Cloud Connectivity and select a cloud service provider.
  2. Click on the Telemetry Message tab.
  3. Specify an Output Topic name.
  4. Enter the Polling Interval in seconds.
  5. Set up a threshold based on the file size (bytes) or time interval (seconds).
  6. Click NEXT.

img

  1. Select device tags from provides (e.g., Modbus Master).
  2. (Optional) Enable custom payload by using the jq filter.
  3. Click NEXT.
  4. (Optional) Enter Property Key and Property Value.
  5. Click SUBMIT.

img

img

he Device-to-Cloud (D2C) message policy allows you to transform default payload to your desired payload schema via the jq filter. For additional information, refer to the jq website at https://stedolan.github.io/jq/manual/.

Enabling Store and Forward

D2C messages can be cached in a specified location and sent to the cloud later. This feature will help you store the acquired data temporarily in a queue when the network between your IIoT Gateway and the cloud is disconnected and re-transmit the data to its destination after reconnecting. To enable the function, click on the Store and Forward tab and select Enable Store and Forward. You can select a target disk and set a maximum storage cache, set a retention policy, and a TTL (Time to Live) value for the messages.

img

Device Management Settings

Go to Cloud Connectivity > AWS IoT Core and click on the Device Management tab. Enabling this feature allows cloud service providers to manage IoT devices remotely via Device Shadow and jobs.

AWS IoT Core Thing Policy

{
"Statement": [
{
"Effect": "Allow",
"Action": [
"iot:Connect"
],
"Resource": [
"arn:aws:iot:region:account:client/${iot:Connection.Thing.ThingName}"
]
},
{
"Effect": "Allow",
"Action": [
"iot:Publish",
"iot:Receive"
],
"Resource": [
"arn:aws:iot:region:account:topic/$aws/things/${iot:Connection.Thing.ThingName}/*"
]
},
{
"Effect": "Allow",
"Action": [
"iot:Subscribe"
],
"Resource": [
"arn:aws:iot:region:account:topicfilter/$aws/things/${iot:Connection.Thing.ThingName}/*"
]
}
]
}

Last updated on 2022-07-21 by Cecilia Fernandes