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 年前372 查看次数
1 回答
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
已回答 1 年前
profile pictureAWS
专家
Greg_B
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则