A modelling and serializer library for Microsoft Azure IoTHub client applications
Dependents: sht15_remote_monitoring f767zi_mqtt remote_monitoring simplesample_amqp ... more
This library implements a serializer library to be used in projects involving Microsoft Azure IoT Hub connectivity. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: serializer_devicetwin.h
- Revision:
- 23:078ea26cffcd
- Parent:
- 22:422d94bd3c18
- Child:
- 26:7c0e6f86d034
--- a/serializer_devicetwin.h Sat Jan 28 09:35:06 2017 -0800 +++ b/serializer_devicetwin.h Fri Feb 24 14:01:25 2017 -0800 @@ -10,6 +10,7 @@ #include "iothub_client.h" #include "iothub_client_ll.h" #include "parson.h" +#include "azure_c_shared_utility/optimize_size.h" #include "azure_c_shared_utility/vector.h" #include "methodreturn.h" @@ -228,14 +229,14 @@ if ((g_allProtoHandles == NULL) && ((g_allProtoHandles = VECTOR_create(sizeof(SERIALIZER_DEVICETWIN_PROTOHANDLE))) == NULL)) { LogError("failure in VECTOR_create"); - result = __LINE__; + result = __FAILURE__; } else { if (VECTOR_push_back(g_allProtoHandles, protoHandle, 1) != 0) { LogError("failure in VECTOR_push_back"); - result = __LINE__; + result = __FAILURE__; /*leave it as it was*/