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.

preguntada hace un año372 visualizaciones
1 Respuesta
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
respondido hace un año
profile pictureAWS
EXPERTO
Greg_B
revisado hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas