AWS IoT Fleet Provisioning doesn't publish certificate response

0

Good afternoon,

I have created a fleet provisioning template but when I publish to "$aws/certificates/create/json" the IoT backend does not publish a response.

Region: us-east-2
Cloudwatch log output: (trimmed)
EVENT:MQTT Client Connect MESSAGE:Connect Status: SUCCESS
EVENT:MQTTClient Subscribe TOPICNAME:$aws/certificates/create/json/accepted MESSAGE:Subscribe Status: SUCCESS
EVENT:MQTTClient Subscribe TOPICNAME:$aws/certificates/create/json/rejected MESSAGE:Subscribe Status: SUCCESS
EVENT:PublishEvent TOPICNAME:$aws/certificates/create/json MESSAGE:PublishIn Status: SUCCESS
EVENT: CreateKeysAndCertificate Status: SUCCESS MESSAGE: Successfully created keys and certificate with id xxx

I would expect this to be followed by a PublishOut event. I can verify that the certificate is generated and pending activation but my client never gets a response.

Please let me know how to solve this issue.

demandé il y a 3 ans610 vues
2 réponses
0

Finally figured it out, you need to set a client ID and have a non-zero client ID length in your connection packet to the broker.
If the client ID length is zero the broker should generate a random client ID, which judging by the logs it does correctly (Eg: '$GEN/a5e20039-82c0-4069-a0ff-9a86d8dd2b03') but the backend does not publish a certificate creation response

répondu il y a 3 ans
0

I was having the same issue and it was driving me crazy. Thanks for the solution!

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions