Microsoft Azure IoTHub client HTTP transport

Dependents:   iothub_client_sample_http simplesample_http temp_sensor_anomaly

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

Revision:
10:b012891d0a54
Parent:
9:0b2cab6cfc60
Child:
11:495deb847d9c
--- a/iothubtransporthttp.c	Fri Jan 15 15:49:36 2016 -0800
+++ b/iothubtransporthttp.c	Thu Jan 28 09:57:44 2016 -0800
@@ -205,7 +205,7 @@
                     (HTTPHeaders_AddHeaderNameValuePair(handleData->eventHTTPrequestHeaders, "Authorization", " ") == HTTP_HEADERS_OK) &&
                     (HTTPHeaders_AddHeaderNameValuePair(handleData->eventHTTPrequestHeaders, "Accept", "application/json") == HTTP_HEADERS_OK) &&
                     (HTTPHeaders_AddHeaderNameValuePair(handleData->eventHTTPrequestHeaders, "Connection", "Keep-Alive") == HTTP_HEADERS_OK) &&
-                    (HTTPHeaders_AddHeaderNameValuePair(handleData->eventHTTPrequestHeaders, "User-Agent", CLIENT_DEVICE_TYPE_PREFIX IOTHUB_SDK_VERSION) == HTTP_HEADERS_OK)
+                    (HTTPHeaders_AddHeaderNameValuePair(handleData->eventHTTPrequestHeaders, "User-Agent", CLIENT_DEVICE_TYPE_PREFIX CLIENT_DEVICE_BACKSLASH IOTHUB_SDK_VERSION) == HTTP_HEADERS_OK)
                     ))
                 {
                     result = false;
@@ -820,7 +820,7 @@
     {
         bool isFirst = true;
         PDLIST_ENTRY actual;
-		bool keepGoing = true; /*keepGoing gets sometimes to false from within the loop*/
+        bool keepGoing = true; /*keepGoing gets sometimes to false from within the loop*/
         /*either all the items enter the list or only some*/
         result = MAKE_PAYLOAD_OK; /*optimistically initializing it*/
         while (keepGoing && ((actual = handleData->waitingToSend->Flink) != handleData->waitingToSend))