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:
45:54c11b1b1407
Parent:
42:448eecc3676e
Child:
46:6a69294b6119
--- a/iothub_client_ll_uploadtoblob.c	Tue Jun 21 09:57:27 2016 -0700
+++ b/iothub_client_ll_uploadtoblob.c	Fri Jul 01 10:42:36 2016 -0700
@@ -1,6 +1,10 @@
 // Copyright (c) Microsoft. All rights reserved.
 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
 
+#ifdef DONT_USE_UPLOADTOBLOB
+#error "trying to compile iothub_client_ll_uploadtoblob.c while the symbol DONT_USE_UPLOADTOBLOB is #define'd"
+#else
+
 #include <stdlib.h>
 #ifdef _CRTDBG_MAP_ALLOC
 #include <crtdbg.h>
@@ -9,7 +13,7 @@
 #include "azure_c_shared_utility/gballoc.h"
 #include "azure_c_shared_utility/string_tokenizer.h"
 #include "azure_c_shared_utility/doublylinkedlist.h"
-#include "azure_c_shared_utility/iot_logging.h"
+#include "azure_c_shared_utility/xlogging.h"
 #include "azure_c_shared_utility/tickcounter.h"
 #include "azure_c_shared_utility/httpapiexsas.h"
 
@@ -607,8 +611,7 @@
     if (
         (handle == NULL) ||
         (destinationFileName == NULL) ||
-        ((source == NULL) && (size > 0)) ||
-        (size >= 64*1024*1024)
+        ((source == NULL) && (size > 0))
         )
     {
         LogError("invalid argument detected handle=%p destinationFileName=%p source=%p size=%zu", handle, destinationFileName, source, size);
@@ -777,3 +780,4 @@
         free(handleData);
     }
 }
+#endif /*DONT_USE_UPLOADTOBLOB*/