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:
28:0b867098c0c8
Parent:
26:9662f727e974
Child:
29:12a5fd69f49e
--- a/simplesample_amqp.c	Fri Feb 05 00:49:36 2016 +0000
+++ b/simplesample_amqp.c	Thu Feb 04 17:40:49 2016 -0800
@@ -146,13 +146,13 @@
         }
         else
         {
-ef MBED_BUILD_TIMESTAMP
+#ifdef MBED_BUILD_TIMESTAMP
             // For mbed add the certificate information
             if (IoTHubClient_SetOption(iotHubClientHandle, "TrustedCerts", certificates) != IOTHUB_CLIENT_OK)
             {
                 (void)printf("failure to set option \"TrustedCerts\"\r\n");
             }
-if // MBED_BUILD_TIMESTAMP
+#endif // MBED_BUILD_TIMESTAMP
 
             ContosoAnemometer* myWeather = CREATE_MODEL_INSTANCE(WeatherStation, ContosoAnemometer);
             if (myWeather == NULL)