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?

gefragt vor 3 Jahren306 Aufrufe
1 Antwort
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.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen