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:
31:741eacddf296
Parent:
16:deba40344375
Child:
32:6e9d81a62085
--- a/iothub_client_ll.c	Sat Jan 23 00:45:07 2016 +0000
+++ b/iothub_client_ll.c	Mon Jan 25 19:21:04 2016 -0800
@@ -81,8 +81,9 @@
             config->iotHubSuffix = NULL;
             config->deviceId = NULL;
             config->deviceKey = NULL;
-			/* Codes_SRS_IOTHUBCLIENT_LL_04_002: [If it does not, it shall pass the protocolGatewayHostName NULL.] */
-			config->protocolGatewayHostName = NULL;
+            /* Codes_SRS_IOTHUBCLIENT_LL_04_002: [If it does not, it shall pass the protocolGatewayHostName NULL.] */
+            config->protocolGatewayHostName = NULL;
+            config->io_transport_provider_callback = NULL;
 
             if ((connString = STRING_construct(connectionString)) == NULL)
             {
@@ -125,7 +126,7 @@
                         {
                             /* SRS_IOTHUBCLIENT_LL_12_010: [IoTHubClient_LL_CreateFromConnectionString shall fill up the IOTHUB_CLIENT_CONFIG structure using the following mapping: iotHubName = Name, iotHubSuffix = Suffix, deviceId = DeviceId, deviceKey = SharedAccessKey] */
                             const char* s_token = STRING_c_str(tokenString);
-							if (strcmp(s_token, HOSTNAME_TOKEN) == 0)
+                            if (strcmp(s_token, HOSTNAME_TOKEN) == 0)
                             {
                                 /* SRS_IOTHUBCLIENT_LL_12_009: [IoTHubClient_LL_CreateFromConnectionString shall split the value of HostName to Name and Suffix using the first "." as a separator] */
                                 STRING_TOKENIZER_HANDLE tokenizer2 = NULL;
@@ -176,7 +177,7 @@
                                     config->deviceKey = STRING_c_str(deviceKeyString);
                                 }
                             }
-							/* Codes_SRS_IOTHUBCLIENT_LL_04_001: [IoTHubClient_LL_CreateFromConnectionString shall verify the existence of key/value pair GatewayHostName. If it does exist it shall pass the value to IoTHubClient_LL_Create API.] */
+                            /* Codes_SRS_IOTHUBCLIENT_LL_04_001: [IoTHubClient_LL_CreateFromConnectionString shall verify the existence of key/value pair GatewayHostName. If it does exist it shall pass the value to IoTHubClient_LL_Create API.] */
                             else if (strcmp(s_token, PROTOCOL_GATEWAY_HOST) == 0)
                             {
                                 protocolGateway = STRING_clone(valueString);