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개 답변
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
답변함 일 년 전
profile pictureAWS
전문가
Greg_B
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인