Unable to receive messages in the Raspberry Pi connection example

0

I followed the steps mentioned in "Getting started with AWS IoT Core" documents to test my Raspberry Pi 4B device connectivity. I have created certificates, policy that allows connect, subscribe and publish actions for any (*) resource and created a thing entry for my device.

I have tried both Python and Node samples. In both the cases the client is able to publish messages, but no messages are getting consumed i.e. received. From Amazon Console I can test the same by subscribing to the same topic from console. It is successfully receiving messages. I am facing problem in sample code.

There are no errors. Only publish messages get printed and the program waits forever to receive the messages.

Any pointers?

已提問 3 年前檢視次數 306 次
1 個回答
1

The issue was with policy. As I mentioned in the query, I added Publish, Connect and Subscribe actions but not Receive. As a result messages were not getting delivered.

已回答 3 年前

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

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

回答問題指南