AWS IoT Core
Click AWS IoT Core, and you can enable/ disable the AWS IoT Core. To create the AWS IoT Core connectivity, following the steps below:
- Click
to set connection.
- Enter Host, Port (default: 8883).
- Enter ThingID.
- Select a way of message QoS.
- Upload X.509 Certificate, Private Key, and (optional) Trusted Root CA.
- Click SAVE.
Telemetry Message
The simplest message type for sending IoT device data to your IIoT applications is a telemetry message. To create a telemetry message, do the following:
- In the CLOUD CONNECTIVITY section, select a cloud service provider.
- Click on the Telemetry Message tab.
- Specify an Output Topic name.
- Enter the Polling Interval in seconds.
- Setup a threshold by file size (bytes) or time interval (seconds).
- Click NEXT.
7. Select tags from provides (e.g., Modbus Master).
8. (Optional) Enable custom payload by using the jq filter.
9. Click NEXT.
10. (Optional) Enter Property Key and Value.
11. Click SUBMIT.
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 (https://stedolan.github.io/jq/manual/).
Store and Forward
D2C messages can be cached in a specified location and sent to the cloud later. This feature will help you to keep the acquired data in a queue temporarily when the network between your IIoT Gateway and the cloud is disconnected and transmit them to its destination after the reconnection. To enable the function, click on the Store and Forward 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.
Device Management
Enabling this feature allows cloud service providers manage IoT devices remotely throughout 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-05-31 by Aeluin Chen (陳映攸)