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.
Diff: iothub_client_sample_amqp.c
- Revision:
- 69:06d895ef6bfc
- Parent:
- 63:14e9684b52e3
- Child:
- 74:d20e4ff30068
--- a/iothub_client_sample_amqp.c Fri Apr 21 14:51:29 2017 -0700 +++ b/iothub_client_sample_amqp.c Mon May 08 10:51:41 2017 -0700 @@ -27,7 +27,6 @@ #define MESSAGE_COUNT 5 #define DOWORK_LOOP_NUM 3 - typedef struct EVENT_INSTANCE_TAG { IOTHUB_MESSAGE_HANDLE messageHandle; @@ -108,7 +107,7 @@ } } - if (size == (strlen("quit") * sizeof(char)) && memcmp(buffer, "quit", size) == 0) + if (size == (strlen("quit") * sizeof(char)) && memcmp(buffer, "quit", size) == 0) { g_continueRunning = false; }