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?

preguntada hace 3 años306 visualizaciones
1 Respuesta
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.

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas