Azure IoT / iothub_amqp_transport

Dependents:   sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more

Files at this revision

API Documentation at this revision

Comitter:
AzureIoTClient
Date:
Tue Jan 24 15:23:10 2017 -0800
Parent:
26:ee14eed604f6
Child:
28:dc01bcb2cb01
Commit message:
1.1.5

Changed in this revision

iothubtransport_amqp_common.c Show annotated file Show diff for this revision Revisions of this file
iothubtransportamqp_auth.c Show annotated file Show diff for this revision Revisions of this file
iothubtransportamqp_auth.h Show annotated file Show diff for this revision Revisions of this file
uamqp_messaging.c Show annotated file Show diff for this revision Revisions of this file
--- a/iothubtransport_amqp_common.c	Sun Jan 08 11:11:13 2017 -0800
+++ b/iothubtransport_amqp_common.c	Tue Jan 24 15:23:10 2017 -0800
@@ -2,9 +2,6 @@
 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
 
 #include <stdlib.h>
-#ifdef _CRTDBG_MAP_ALLOC
-#include <crtdbg.h>
-#endif
 #include <stdint.h>
 #include <time.h>
 #include <limits.h>
@@ -1040,7 +1037,7 @@
 {
     if (authentication_reset(device_state->authentication) != RESULT_OK)
     {
-        LogError("Failed resetting the authenticatication state of device %s", device_state->deviceId);
+        LogError("Failed resetting the authenticatication state of device %s", STRING_c_str(device_state->deviceId));
     }
 
 #ifdef WIP_C2D_METHODS_AMQP /* This feature is WIP, do not use yet */
--- a/iothubtransportamqp_auth.c	Sun Jan 08 11:11:13 2017 -0800
+++ b/iothubtransportamqp_auth.c	Tue Jan 24 15:23:10 2017 -0800
@@ -626,7 +626,7 @@
 			{
 				STRING_HANDLE devices_path = NULL;
 
-				if (auth_state->status == AUTHENTICATION_STATUS_FAILURE || auth_state->status == AUTHENTICATION_STATUS_REFRESH_REQUIRED)
+				if (auth_state->status == AUTHENTICATION_STATUS_FAILURE || auth_state->status == AUTHENTICATION_STATUS_REFRESH_REQUIRED || auth_state->status == AUTHENTICATION_STATUS_TIMEOUT)
 				{
 					// Codes_IOTHUBTRANSPORTAMQP_AUTH_09_063: [If the authentication_state status is AUTHENTICATION_STATUS_FAILURE or AUTHENTICATION_STATUS_REFRESH_REQUIRED, authentication_reset() shall set the status to AUTHENTICATION_STATUS_IDLE]
 					auth_state->status = AUTHENTICATION_STATUS_IDLE;
--- a/iothubtransportamqp_auth.h	Sun Jan 08 11:11:13 2017 -0800
+++ b/iothubtransportamqp_auth.h	Tue Jan 24 15:23:10 2017 -0800
@@ -5,9 +5,6 @@
 #define IOTHUBTRANSPORTAMQP_AUTH_H 
 
 #include <stdlib.h>
-#ifdef _CRTDBG_MAP_ALLOC
-#include <crtdbg.h>
-#endif
 #include <stdint.h>
 #include "azure_c_shared_utility/strings.h" 
 #include "azure_c_shared_utility/sastoken.h"
--- a/uamqp_messaging.c	Sun Jan 08 11:11:13 2017 -0800
+++ b/uamqp_messaging.c	Tue Jan 24 15:23:10 2017 -0800
@@ -1,9 +1,6 @@
 // Copyright (c) Microsoft. All rights reserved.
 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
 #include <stdlib.h>
-#ifdef _CRTDBG_MAP_ALLOC
-#include <crtdbg.h>
-#endif
 #include "uamqp_messaging.h"
 #include "azure_c_shared_utility/xlogging.h"
 #include "azure_uamqp_c/message.h"