Ingesting Data from IOT-SITEWISE to IOT-CORE and triggering lambda function on IOT Rules

0

Hi,

I have data from my OPCUA Server to my IOT Sitewise, where my Models, Assets, and Measurements are configured. I want to send these data to a topic in my IOT Core. Then on top of it, I want to create rules, and when those rules are met, I want to invoke my lambda function to call my ML model and give inference and write back to the Measurements inside my Assets in IOT Sitewise. How do I achieve the same?

Any help will be appreciated.

1 Answer
2

You can enable property measurement to publish data to iot core. Follow the AWS documentation on this Page. https://docs.aws.amazon.com/iot-sitewise/latest/userguide/publish-to-amazon-dynamodb.html#dynamodb-tutorial-enable-value-notifications

Once the data is published on IoT Core, you can route data to Lambda via IoT Core Rules. You can define a rule based on a notification topic that will be available once publishing to IoT Core is enabled for any assets.

Lambda can do a ML inference, and call SiteWise API to write data back to any measurement. Here is a sample code on git, on writing data back to SiteWise

https://github.com/aws-samples/aws-iot-sitewise-with-amazon-lookout-for-equipment/blob/main/lambda_function/l4eoutput-2sitewise.zip

AWS
answered 10 months ago
profile pictureAWS
EXPERT
Greg_B
reviewed 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions