Is AWS IoT Core the right choice?

0

Hey guys,

I just want to do a simple IoT thing the other way round. What you can find on YouTube etc. are tutorials that setup a Raspberry Pi to send sensor data to the AWS cloud. I want to go the other way round: I have a mobile application and if an event is triggered here (click on a dedicated button), it should trigger an event on the Pi to execute some Python code.

Is AWS IoT Core the right product for it or must I go with API Gateway WebSockets instead? Unfortunately I wasn't able to find a good example online for this (from my point of view) standard IoT scenario.

Thanks a lot for ya help!

Rene B.
已提問 5 年前檢視次數 232 次
1 個回答
0

AWS IoT Core uses MQTT protocol to communicate with your Raspberry.
You have SDKs written in almost every languages.
You can do D2C and C2D.
An easy solution for you would be , when the user clicks the button on your mobile app, it triggers a function on your API that publishes to a MQTT topic and on the raspberry you just need to subscribe to the same topic to receive the message.

You can find some nice tutorial directly on AWS documentation :
https://docs.aws.amazon.com/iot/latest/developerguide/view-mqtt-messages.html

Hope it helps

Doombqr
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南