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:
51:289ece2f210e
Parent:
43:f179aa2ce96f
Child:
52:595dd76f48d2
--- a/simplesample_amqp.c	Thu Oct 20 17:09:45 2016 -0700
+++ b/simplesample_amqp.c	Wed Nov 16 21:40:09 2016 -0800
@@ -182,7 +182,7 @@
                         myWeather->DeviceId = "myFirstDevice";
                         myWeather->WindSpeed = avgWindSpeed + (rand() % 4 + 2);
 
-                        if (SERIALIZE(&destination, &destinationSize, myWeather->DeviceId, myWeather->WindSpeed) != IOT_AGENT_OK)
+                        if (SERIALIZE(&destination, &destinationSize, myWeather->DeviceId, myWeather->WindSpeed) != CODEFIRST_OK)
                         {
                             (void)printf("Failed to serialize\r\n");
                         }