3 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata un anno fa