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:
22:422d94bd3c18
Parent:
18:58b667752399
Child:
23:078ea26cffcd
--- a/serializer_devicetwin.h	Tue Jan 24 15:24:19 2017 -0800
+++ b/serializer_devicetwin.h	Sat Jan 28 09:35:06 2017 -0800
@@ -10,7 +10,7 @@
 #include "iothub_client.h"
 #include "iothub_client_ll.h"
 #include "parson.h"
-#include "vector.h"
+#include "azure_c_shared_utility/vector.h"
 #include "methodreturn.h"
 
 static void serializer_ingest(DEVICE_TWIN_UPDATE_STATE update_state, const unsigned char* payLoad, size_t size, void* userContextCallback)
@@ -26,7 +26,7 @@
     }
     else
     {
-        memcpy(copyOfPayload, payLoad, size);
+        (void)memcpy(copyOfPayload, payLoad, size);
         copyOfPayload[size] = '\0';
 
         /*Codes_SRS_SERIALIZERDEVICETWIN_02_002: [ serializer_ingest shall parse the null terminated string into parson data types. ]*/
@@ -143,7 +143,7 @@
     }
     else
     {
-        memcpy(payloadZeroTerminated, payload, size);
+        (void)memcpy(payloadZeroTerminated, payload, size);
         payloadZeroTerminated[size] = '\0';
 
         /*Codes_SRS_SERIALIZERDEVICETWIN_02_022: [ deviceMethodCallback shall call EXECUTE_METHOD passing the userContextCallback, method_name and the null terminated string build before. ]*/
@@ -185,7 +185,7 @@
                 else
                 {
                     /*Codes_SRS_SERIALIZERDEVICETWIN_02_024: [ deviceMethodCallback shall set *response to this new byte array, *resp_size to the size of the array. ]*/
-                    memcpy(*response, data->jsonValue, *resp_size);
+                    (void)memcpy(*response, data->jsonValue, *resp_size);
                 }
             }
             MethodReturn_Destroy(mr);