A simple IoTHub sample using HTTP as transport

Dependencies:   EthernetInterface NTPClient iothub_client iothub_http_transport mbed-rtos mbed wolfSSL serializer azure_c_shared_utility

This sample showcases the usage of Azure IoT client libraries with the HTTP transport for sending/receiving raw messages from an IoT Hub.

Revision:
20:188fd25e65fc
Parent:
19:253a0a1ea1c5
Child:
28:44b1d44d0d3b
--- a/simplesample_http.c	Thu Dec 17 18:24:13 2015 -0800
+++ b/simplesample_http.c	Fri Jan 15 15:50:06 2016 -0800
@@ -33,7 +33,7 @@
 
 DECLARE_MODEL(ContosoAnemometer,
 WITH_DATA(ascii_char_ptr, DeviceId),
-WITH_DATA(double, WindSpeed),
+WITH_DATA(int, WindSpeed),
 WITH_ACTION(TurnFanOn),
 WITH_ACTION(TurnFanOff),
 WITH_ACTION(SetAirResistance, int, Position)
@@ -143,7 +143,7 @@
     else
     {
         IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle = IoTHubClient_LL_CreateFromConnectionString(connectionString, HTTP_Protocol);
-        double avgWindSpeed = 10.0;
+        int avgWindSpeed = 10;
 
         srand((unsigned int)time(NULL));