3 Answers
- Newest
- Most votes
- Most comments
2
You need to check whether the policy attached to that certificate allows the device to perform the operation your code is doing on the necessary resources. Assuming you're publishing into a specific topic, the policy needs to allow an iot:Publish
action on that topic (or covered by a wildcard).
1
Hello Eric,
you should enable logging for IoT Core. Then you might find information about what happens in CloudWatch logs.
You should also validate the IoT policy attached to your device certificate. If the MQTT client violates this policy, for example by sending a not permitted client ID it will be disconnected.
Cheers,
Philipp
0
Thank you both for your quick answers. I had not actually attached my certificates to the policy I created... Regards, Eric
answered 2 years ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a year ago