From 1186473eb7a7dd8e8be5f8d797f75ae752f32302 Mon Sep 17 00:00:00 2001 From: Rhodri-Davies Date: Tue, 19 Dec 2017 22:55:39 +0000 Subject: [PATCH] Initialise msgParams.isRetained to 0 in publishToShadowAction() (#112) --- src/aws_iot_shadow_records.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aws_iot_shadow_records.c b/src/aws_iot_shadow_records.c index 8d9e9e90a6..92b93bfbb2 100644 --- a/src/aws_iot_shadow_records.c +++ b/src/aws_iot_shadow_records.c @@ -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);