Closed sduddell closed 2 years ago
@sduddell , does your AWS IoT Policy allow the client to subscribe to this topic?
Hi Piyush,
Thanks for quick reply. Yes, AWS IoT policy is allowing, still this error is seen.
Hi @sduddell, did you found the solution as I am facing the same issue.
In my case, certificate in the device was different from policy where I'm allowing it to connect. You can also check the cloudwatch logs to understand the error from AWS IoT perspective.
Hi,
I'm trying to subscribe to an MQTT topic using aws_iot_mqtt_subscribe(), but it fails.
As shown in below code, trying to subscribe to topic
"M5TimerCameraF1/pub"
:It fails as shown below:
It connected properly to AWS IOT before subscribing though. Are there any pre-requisites to be done before subscription? Any suggestions/solutions would help.
Thanks!