Skip to content

Commit

Permalink
demos,fleet_provisioning: Fix missing assignment (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
szsam authored Mar 31, 2023
1 parent d8c63c0 commit 29aea9b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,10 @@ int main( int argc,
if( status == true )
{
/* Publish the CSR to the CreateCertificatefromCsr API. */
PublishToTopic( FP_CBOR_CREATE_CERT_PUBLISH_TOPIC,
FP_CBOR_CREATE_CERT_PUBLISH_LENGTH,
( char * ) payloadBuffer,
payloadLength );
status = PublishToTopic( FP_CBOR_CREATE_CERT_PUBLISH_TOPIC,
FP_CBOR_CREATE_CERT_PUBLISH_LENGTH,
( char * ) payloadBuffer,
payloadLength );

if( status == false )
{
Expand Down Expand Up @@ -663,10 +663,10 @@ int main( int argc,
if( status == true )
{
/* Publish the RegisterThing request. */
PublishToTopic( FP_CBOR_REGISTER_PUBLISH_TOPIC( PROVISIONING_TEMPLATE_NAME ),
FP_CBOR_REGISTER_PUBLISH_LENGTH( PROVISIONING_TEMPLATE_NAME_LENGTH ),
( char * ) payloadBuffer,
payloadLength );
status = PublishToTopic( FP_CBOR_REGISTER_PUBLISH_TOPIC( PROVISIONING_TEMPLATE_NAME ),
FP_CBOR_REGISTER_PUBLISH_LENGTH( PROVISIONING_TEMPLATE_NAME_LENGTH ),
( char * ) payloadBuffer,
payloadLength );

if( status == false )
{
Expand Down

0 comments on commit 29aea9b

Please sign in to comment.