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

Revision:
34:87d7cd4169c6
Parent:
26:7c0e6f86d034
Child:
36:7d12a5386197
--- a/serializer_devicetwin.h	Mon Jun 11 15:40:43 2018 -0700
+++ b/serializer_devicetwin.h	Tue Jun 26 19:15:47 2018 -0700
@@ -349,13 +349,13 @@
                 LogError("INTERNAL ERROR");
             }
             }/*switch*/
-        }
+
+             /*Codes_SRS_SERIALIZERDEVICETWIN_02_017: [ IoTHubDeviceTwin_Destroy_Impl shall call CodeFirst_DestroyDevice. ]*/
+            CodeFirst_DestroyDevice(protoHandle->deviceAssigned);
 
-        /*Codes_SRS_SERIALIZERDEVICETWIN_02_017: [ IoTHubDeviceTwin_Destroy_Impl shall call CodeFirst_DestroyDevice. ]*/
-        CodeFirst_DestroyDevice(protoHandle->deviceAssigned);
-
-        /*Codes_SRS_SERIALIZERDEVICETWIN_02_018: [ IoTHubDeviceTwin_Destroy_Impl shall remove the IoTHubClient_Handle and the device handle from the recorded set. ]*/
-        VECTOR_erase(g_allProtoHandles, protoHandle, 1);
+            /*Codes_SRS_SERIALIZERDEVICETWIN_02_018: [ IoTHubDeviceTwin_Destroy_Impl shall remove the IoTHubClient_Handle and the device handle from the recorded set. ]*/
+            VECTOR_erase(g_allProtoHandles, protoHandle, 1);
+        }
 
         /*Codes_SRS_SERIALIZERDEVICETWIN_02_019: [ If the recorded set of IoTHubClient handles is zero size, then the set shall be destroyed. ]*/
         if (VECTOR_size(g_allProtoHandles) == 0) /*lazy init means more work @ destroy time*/