使用Python将数据从AWS IoT传输到AWS Lambda?

问题描述:

我正在将数据从Raspberry Pi发布到AWS IoT,并且在那里可以看到更新.现在,我需要将这些数据放入AWS Lambda并将其连接到AWS SNS,以发送超出阈值的消息.我知道有关使用SNS和IoT的知识.我只想知道如何将数据从AWS IoT传输到AWS Lambda?请帮忙 !!谢谢:)

I am Publishing data from Raspberry Pi to AWS IoT and I can see the updates there. Now, I need to get that data into AWS Lambda and connect it to AWS SNS to send a message above a threshold. I know about working with SNS and IoT. I just want to know that how I can get the data from AWS IoT to AWS Lambda ?? Please Help !! Thanks :)

在IoT代码中,创建规则以调用Lambda接受JSON数据.然后,您可以使用该数据执行任何操作.

In IoT Code, Create a rule for invoking a Lambda to accept JSON data. Then you can do anything with that data.