Skip to content

Commit

Permalink
Fix mqtt5 fleet provisioning sample
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Jul 11, 2024
1 parent b6492d7 commit 4c99816
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/fleet_provisioning/mqtt5_fleet_provisioning/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ int main(int argc, char *argv[])
{
fprintf(stdout, "CreateCertificateFromCsrResponse certificateId: %s.\n", response->CertificateId->c_str());
token = *response->CertificateOwnershipToken;
csrAcceptedCompletedPromise.set_value();
}
else
{
Expand Down Expand Up @@ -242,6 +243,7 @@ int main(int argc, char *argv[])
{
fprintf(stdout, "CreateKeysAndCertificateResponse certificateId: %s.\n", response->CertificateId->c_str());
token = *response->CertificateOwnershipToken;
keysAcceptedCompletedPromise.set_value();
}
else
{
Expand Down Expand Up @@ -291,6 +293,7 @@ int main(int argc, char *argv[])
if (ioErr == AWS_OP_SUCCESS)
{
fprintf(stdout, "RegisterThingResponse ThingName: %s.\n", response->ThingName->c_str());
registerAcceptedCompletedPromise.set_value();
}
else
{
Expand Down

0 comments on commit 4c99816

Please sign in to comment.