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:
41:4080293252bc
Parent:
34:e8375a90f09f
Child:
42:fc9ef8d266b3
diff -r 00ab32fdba64 -r 4080293252bc simplesample_http.c
--- a/simplesample_http.c	Wed Jun 22 23:50:49 2016 +0000
+++ b/simplesample_http.c	Fri Jul 01 10:45:03 2016 -0700
@@ -14,11 +14,11 @@
 #ifdef ARDUINO
 #include "AzureIoT.h"
 #else
+#include "azure_c_shared_utility/threadapi.h"
+#include "azure_c_shared_utility/platform.h"
 #include "serializer.h"
 #include "iothub_client_ll.h"
 #include "iothubtransporthttp.h"
-#include "azure_c_shared_utility/threadapi.h"
-#include "azure_c_shared_utility/platform.h"
 #endif
 
 #ifdef MBED_BUILD_TIMESTAMP
@@ -42,7 +42,6 @@
 
 END_NAMESPACE(WeatherStation);
 
-DEFINE_ENUM_STRINGS(IOTHUB_CLIENT_CONFIRMATION_RESULT, IOTHUB_CLIENT_CONFIRMATION_RESULT_VALUES)
 
 EXECUTE_COMMAND_RESULT TurnFanOn(ContosoAnemometer* device)
 {