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:
6:36cc37b1dbc9
Parent:
0:1f9b2707ec7d
Child:
7:5176a13270bb
--- a/codefirst.c	Thu Dec 17 18:23:43 2015 -0800
+++ b/codefirst.c	Fri Jan 15 15:49:46 2016 -0800
@@ -441,6 +441,7 @@
 
 AGENT_DATA_TYPE_TYPE CodeFirst_GetPrimitiveType(const char* typeName)
 {
+#ifdef USE_FLOATS
     if (strcmp(typeName, "double") == 0)
     {
         return EDM_DOUBLE_TYPE;
@@ -449,7 +450,9 @@
     {
         return EDM_SINGLE_TYPE;
     }
-    else if (strcmp(typeName, "int") == 0)
+    else 
+#endif
+    if (strcmp(typeName, "int") == 0)
     {
         return EDM_INT32_TYPE;
     }