espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
256 stars 153 forks source link

Event callback not called when there's a new message in a subscribed topic (CA-299) #188

Closed OussamaBKO closed 1 year ago

OussamaBKO commented 1 year ago

Hello everyone,

I tried the shadow demo example and it worked correctly. I took the same procedure and instead of subscribing to shadow's topics, I subscribed to a normal topic. The subscription was successful as I received 0 in return, but whenever I post something in that topic, I don't receive it on my ESP32. I tried subscribing using a python script and it worked at the same time when the ESP32 received none. The code is simple, I establish an MQTT session then I subscribe to a topic, the callback is then never triggered. Am I missing something, or is the framework only available for shadows?

Thank you in advance.