Skip to content

Commit 9a9f190

Browse files
Rhodri-Daviesvareddy
authored andcommitted
Initialise msgParams.isRetained to 0 in publishToShadowAction() (#112)
1 parent 2f4aa6d commit 9a9f190

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/aws_iot_shadow_records.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ IoT_Error_t publishToShadowAction(const char *pThingName, ShadowActions_t action
412412
topicNameFromThingAndAction(TemporaryTopicName, pThingName, action, SHADOW_ACTION);
413413

414414
msgParams.qos = QOS0;
415+
msgParams.isRetained = 0;
415416
msgParams.payloadLen = strlen(pJsonDocumentToBeSent);
416417
msgParams.payload = (char *) pJsonDocumentToBeSent;
417418
ret_val = aws_iot_mqtt_publish(pMqttClient, TemporaryTopicName, (uint16_t) strlen(TemporaryTopicName), &msgParams);

0 commit comments

Comments
 (0)