Azure IoT common library
Fork of azure_c_shared_utility by
Diff: platform_mbed.cpp
- Revision:
- 21:b92006c5b9ff
- Parent:
- 19:2e0811512ceb
- Child:
- 25:8507bf644fdf
diff -r 95abdea56064 -r b92006c5b9ff platform_mbed.cpp --- 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 {