Microsoft Azure IoTHub client libraries

Dependents:   sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp f767zi_mqtt ... more

This library implements the Microsoft Azure IoTHub client library. The code is replicated from https://github.com/Azure/azure-iot-sdks

Revision:
60:41648c4e7036
Parent:
58:15b0d29b2667
Child:
61:8b85a4e797cf
--- a/iothub_client_ll.c	Fri Feb 10 17:00:39 2017 -0800
+++ b/iothub_client_ll.c	Fri Feb 24 14:00:43 2017 -0800
@@ -3,6 +3,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include "azure_c_shared_utility/optimize_size.h"
 #include "azure_c_shared_utility/gballoc.h"
 #include "azure_c_shared_utility/string_tokenizer.h"
 #include "azure_c_shared_utility/doublylinkedlist.h"
@@ -759,7 +760,7 @@
         /*Codes_SRS_IOTHUBCLIENT_LL_02_039: [ "messageTimeout" - once IoTHubClient_LL_SendEventAsync is called the message shall timeout after value miliseconds. Value is a pointer to a uint64. ]*/
         if (tickcounter_get_current_ms(handleData->tickCounter, &newEntry->ms_timesOutAfter) != 0)
         {
-            result = __LINE__;
+            result = __FAILURE__;
             LogError("unable to get the current relative tickcount");
         }
         else
@@ -1010,7 +1011,7 @@
     {
         /* Codes_SRS_IOTHUBCLIENT_LL_07_017: [ If handle or response is NULL then IoTHubClient_LL_DeviceMethodComplete shall return 500. ] */
         LogError("Invalid argument handle=%p", handle);
-        result = __LINE__;
+        result = __FAILURE__;
     }
     else
     {
@@ -1028,7 +1029,7 @@
             }
             else
             {
-                result = __LINE__;
+                result = __FAILURE__;
             }
             if (payload_resp != NULL)
             {