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:
22:27faaa37d70f
Parent:
15:2f2b3dc3ecb4
Child:
27:7c908b91210a
--- a/iothub_client_sample_mqtt.c	Thu Sep 22 18:17:50 2016 -0700
+++ b/iothub_client_sample_mqtt.c	Thu Oct 20 17:09:08 2016 -0700
@@ -48,7 +48,7 @@
     {
         (void)printf("Received Message [%d] with Data: <<<%.*s>>> & Size=%d\r\n", *counter, (int)size, buffer, (int)size);
         // If we receive the work 'quit' then we stop running
-        if (memcmp(buffer, "quit", size) == 0)
+		if (size == (strlen("quit") * sizeof(char)) && memcmp(buffer, "quit", size) == 0)
         {
             g_continueRunning = false;
         }