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:
- 55:f977ade69f2c
- Parent:
- 48:ecd0964514f8
- Child:
- 60:ae07786385f9
--- a/iothub_client_sample_amqp.c Thu Sep 22 18:17:17 2016 -0700 +++ b/iothub_client_sample_amqp.c Thu Oct 20 17:08:35 2016 -0700 @@ -108,7 +108,7 @@ } } - if (memcmp(buffer, "quit", size) == 0) + if (size == (strlen("quit") * sizeof(char)) && memcmp(buffer, "quit", size) == 0) { g_continueRunning = false; }