Skip to content

Commit

Permalink
Initialise msgParams.isRetained to 0 in publishToShadowAction() (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhodri-Davies authored and Gordon Wang committed Apr 20, 2018
1 parent 115f733 commit 1186473
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aws_iot_shadow_records.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ IoT_Error_t publishToShadowAction(const char *pThingName, ShadowActions_t action
topicNameFromThingAndAction(TemporaryTopicName, pThingName, action, SHADOW_ACTION);

msgParams.qos = QOS0;
msgParams.isRetained = 0;
msgParams.payloadLen = strlen(pJsonDocumentToBeSent);
msgParams.payload = (char *) pJsonDocumentToBeSent;
ret_val = aws_iot_mqtt_publish(pMqttClient, TemporaryTopicName, (uint16_t) strlen(TemporaryTopicName), &msgParams);
Expand Down

0 comments on commit 1186473

Please sign in to comment.