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.

已提問 3 年前檢視次數 610 次
2 個答案
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

已回答 3 年前
0

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

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南