Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
21:b92006c5b9ff
Parent:
19:2e0811512ceb
Child:
25:8507bf644fdf
--- a/platform_mbed.cpp	Fri Feb 10 17:01:36 2017 -0800
+++ b/platform_mbed.cpp	Fri Feb 24 14:01:41 2017 -0800
@@ -4,6 +4,7 @@
 #include "azure_c_shared_utility/platform.h"
 #include "EthernetInterface.h"
 #include "NTPClient.h"
+#include "azure_c_shared_utility/optimize_size.h"
 #include "azure_c_shared_utility/xio.h"
 #include "azure_c_shared_utility/tlsio_wolfssl.h"
 
@@ -13,14 +14,14 @@
 
     if (EthernetInterface::connect())
     {
-        result = __LINE__;
+        result = __FAILURE__;
     }
     else
     {
         NTPClient ntp;
         if (ntp.setTime("0.pool.ntp.org") != 0)
         {
-            result = __LINE__;
+            result = __FAILURE__;
         }
         else
         {
@@ -38,15 +39,15 @@
 
     if (EthernetInterface::init())
     {
-        result = __LINE__;
+        result = __FAILURE__;
     }
     else if (setupRealTime() != 0)
     {
-        result = __LINE__;
+        result = __FAILURE__;
     } 
     else if (EthernetInterface::connect())
     {
-        result = __LINE__;
+        result = __FAILURE__;
     }
     else
     {