Microsoft Azure IoTHub client AMQP transport
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more
This library implements the AMQP transport for Microsoft Azure IoTHub client. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: uamqp_messaging.c
- Revision:
- 34:51d158b409d2
- Parent:
- 29:7e8852b14e3b
- Child:
- 40:e79ee1341949
--- a/uamqp_messaging.c Fri Apr 21 14:49:45 2017 -0700 +++ b/uamqp_messaging.c Mon May 08 10:49:54 2017 -0700 @@ -411,7 +411,7 @@ { // Codes_SRS_UAMQP_MESSAGING_09_004: [The uAMQP message body data shall be retrieved using message_get_body_amqp_data().] BINARY_DATA binary_data; - if (message_get_body_amqp_data(uamqp_message, 0, &binary_data) != 0) + if (message_get_body_amqp_data_in_place(uamqp_message, 0, &binary_data) != 0) { // Codes_SRS_UAMQP_MESSAGING_09_005: [If message_get_body_amqp_data() fails, IoTHubMessage_CreateFromuAMQPMessage shall fail and return immediately.] LogError("Failed to get the body of the uamqp message.");