IoTHub raw messaging client sample using AMQP

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

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

Revision:
26:9a91eb828b15
Parent:
20:ef0d1001c8f0
Child:
28:a1105bba4bb1
--- a/iothub_client_sample_amqp.c	Mon Jan 25 19:40:35 2016 -0800
+++ b/iothub_client_sample_amqp.c	Fri Jan 29 20:20:42 2016 +0000
@@ -16,7 +16,7 @@
 
 /*String containing Hostname, Device Id & Device Key in the format:             */
 /*  "HostName=<host_name>;DeviceId=<device_id>;SharedAccessKey=<device_key>"    */
-static const char* connectionString = "[device connection string]";
+static const char* connectionString = "HostName=iot-sdks-test.azure-devices.net;DeviceId=toercola;SharedAccessKey=84fCHgQOj5uPL+k18x0UidZAUOG7gvWJIWGxqIQKUkk=";
 static int callbackCounter;
 
 DEFINE_ENUM_STRINGS(IOTHUB_CLIENT_CONFIRMATION_RESULT, IOTHUB_CLIENT_CONFIRMATION_RESULT_VALUES);
@@ -78,7 +78,7 @@
 #define MESSAGE_COUNT 5
 
 void iothub_client_sample_amqp_run(void)
-{
+{    
     IOTHUB_CLIENT_HANDLE iotHubClientHandle;
 
     EVENT_INSTANCE messages[MESSAGE_COUNT];