IoTHub raw messaging client sample using MQTT

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed wolfSSL azure_c_shared_utility iothub_client azure_umqtt_c iothub_mqtt_transport

Revision:
37:fdee5b96897d
Parent:
36:eb9d95ee6d63
Child:
44:093816abb152
--- a/iothub_client_sample_mqtt.c	Mon May 08 10:52:19 2017 -0700
+++ b/iothub_client_sample_mqtt.c	Mon May 22 10:36:52 2017 -0700
@@ -170,6 +170,10 @@
                         }
                         else
                         {
+
+                            (void)IoTHubMessage_SetMessageId(messages[iterator].messageHandle, "MSG_ID");
+                            (void)IoTHubMessage_SetCorrelationId(messages[iterator].messageHandle, "CORE_ID");
+
                             messages[iterator].messageTrackingId = iterator;
                             MAP_HANDLE propMap = IoTHubMessage_Properties(messages[iterator].messageHandle);
                             (void)sprintf_s(propText, sizeof(propText), temperature > 28 ? "true" : "false");
@@ -187,6 +191,7 @@
                                 (void)printf("IoTHubClient_LL_SendEventAsync accepted message [%d] for transmission to IoT Hub.\r\n", (int)iterator);
                             }
                         }
+
                     }
                     IoTHubClient_LL_DoWork(iotHubClientHandle);
                     ThreadAPI_Sleep(1);