Microsoft Azure IoTHub client MQTT transport

Dependents:   STM32F746_iothub_client_sample_mqtt FXOS8700CQ_To_Azure_IoT f767zi_mqtt FXOS8700CQ_To_Azure_IoT ... more

Revision:
36:3b9944257dd5
Parent:
35:c56b7cfcb90b
Child:
37:e6a799428f3d
--- a/iothubtransport_mqtt_common.c	Thu Feb 15 11:34:49 2018 -0800
+++ b/iothubtransport_mqtt_common.c	Mon Mar 05 17:40:20 2018 -0800
@@ -62,7 +62,6 @@
 static const char* TOPIC_DEVICE_DEVICE = "devices/%s/messages/events/";
 
 static const char* TOPIC_DEVICE_METHOD_SUBSCRIBE = "$iothub/methods/POST/#";
-static const char* TOPIC_DEVICE_METHOD_RESPONSE = "$iothub/methods/res";
 
 static const char* IOTHUB_API_VERSION = "2016-11-14";
 
@@ -1660,34 +1659,34 @@
     return result;
 }
 
-static int is_key_validate(const IOTHUBTRANSPORT_CONFIG* config)
-{
-    int result;
-    IOTHUB_CREDENTIAL_TYPE cred_type = IoTHubClient_Auth_Get_Credential_Type(config->auth_module_handle);
-    if (cred_type == IOTHUB_CREDENTIAL_TYPE_X509 || cred_type == IOTHUB_CREDENTIAL_TYPE_X509_ECC)
-    {
-        result = 0;
-    }
-    else
-    {
-        if (config->upperConfig->deviceKey == NULL && config->upperConfig->deviceSasToken == NULL)
-        {
-            if (IoTHubClient_Auth_Get_DeviceKey(config->auth_module_handle) == NULL)
-            {
-                result = __FAILURE__;
-            }
-            else
-            {
-                result = 0;
-            }
-        }
-        else
-        {
-            result = 0;
-        }
-    }
-    return result;
-}
+//static int is_key_validate(const IOTHUBTRANSPORT_CONFIG* config)
+//{
+//    int result;
+//    IOTHUB_CREDENTIAL_TYPE cred_type = IoTHubClient_Auth_Get_Credential_Type(config->auth_module_handle);
+//    if (cred_type == IOTHUB_CREDENTIAL_TYPE_X509 || cred_type == IOTHUB_CREDENTIAL_TYPE_X509_ECC)
+//    {
+//        result = 0;
+//    }
+//    else
+//    {
+//        if (config->upperConfig->deviceKey == NULL && config->upperConfig->deviceSasToken == NULL)
+//        {
+//            if (IoTHubClient_Auth_Get_DeviceKey(config->auth_module_handle) == NULL)
+//            {
+//                result = __FAILURE__;
+//            }
+//            else
+//            {
+//                result = 0;
+//            }
+//        }
+//        else
+//        {
+//            result = 0;
+//        }
+//    }
+//    return result;
+//}
 
 static int SendMqttConnectMsg(PMQTTTRANSPORT_HANDLE_DATA transport_data)
 {