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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ