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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则