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년 전238회 조회
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년 전

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

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

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

관련 콘텐츠