A simple IoTHub sample using AMQP as transport

Dependencies:   EthernetInterface NTPClient iothub_amqp_transport iothub_client mbed-rtos mbed azure_c_shared_utility serializer wolfSSL azure_uamqp_c

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

Revision:
52:595dd76f48d2
Parent:
51:289ece2f210e
Child:
56:68f0d4c20dea
--- a/simplesample_amqp.c	Wed Nov 16 21:40:09 2016 -0800
+++ b/simplesample_amqp.c	Wed Dec 14 16:03:19 2016 -0800
@@ -6,6 +6,9 @@
 #include <stdio.h>
 #include <stdint.h>
 
+#ifdef ARDUINO
+#include "AzureIoTHub.h"
+#else
 #include "serializer.h"
 #include "azure_c_shared_utility/threadapi.h"
 #include "azure_c_shared_utility/sastoken.h"
@@ -13,6 +16,7 @@
 #include "iothub_client.h"
 #include "iothubtransportamqp.h"
 #include "iothub_client_ll.h"
+#endif
 
 #ifdef MBED_BUILD_TIMESTAMP
 #include "certs.h"