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 Antwort
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
beantwortet vor einem Jahr
profile pictureAWS
EXPERTE
Greg_B
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen