Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed wolfSSL azure_c_shared_utility iothub_client azure_umqtt_c iothub_mqtt_transport serializer
Revision 34:4eea18741566, committed 2017-03-24
- Comitter:
- AzureIoTClient
- Date:
- Fri Mar 24 16:38:31 2017 -0700
- Parent:
- 33:2a25d289aa6d
- Child:
- 35:501a1568e610
- Commit message:
- 1.1.10
Changed in this revision
--- a/azure_c_shared_utility.lib Fri Mar 10 11:50:59 2017 -0800 +++ b/azure_c_shared_utility.lib Fri Mar 24 16:38:31 2017 -0700 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/AzureIoTClient/code/azure_c_shared_utility/#10640b226104 \ No newline at end of file +https://developer.mbed.org/users/AzureIoTClient/code/azure_c_shared_utility/#ba126c6eb699 \ No newline at end of file
--- a/iothub_client.lib Fri Mar 10 11:50:59 2017 -0800 +++ b/iothub_client.lib Fri Mar 24 16:38:31 2017 -0700 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/AzureIoTClient/code/iothub_client/#8b85a4e797cf \ No newline at end of file +https://developer.mbed.org/users/AzureIoTClient/code/iothub_client/#5a4cdacf5090 \ No newline at end of file
--- a/iothub_mqtt_transport.lib Fri Mar 10 11:50:59 2017 -0800 +++ b/iothub_mqtt_transport.lib Fri Mar 24 16:38:31 2017 -0700 @@ -1,1 +1,1 @@ -http://mbed.org/users/AzureIoTClient/code/iothub_mqtt_transport/#f87dfe76bc70 \ No newline at end of file +http://mbed.org/users/AzureIoTClient/code/iothub_mqtt_transport/#594780be216d \ No newline at end of file
--- a/serializer.lib Fri Mar 10 11:50:59 2017 -0800 +++ b/serializer.lib Fri Mar 24 16:38:31 2017 -0700 @@ -1,1 +1,1 @@ -http://mbed.org/users/AzureIoTClient/code/serializer/#078ea26cffcd \ No newline at end of file +http://mbed.org/users/AzureIoTClient/code/serializer/#49c36a13bed1 \ No newline at end of file
--- a/simplesample_mqtt.c Fri Mar 10 11:50:59 2017 -0800
+++ b/simplesample_mqtt.c Fri Mar 24 16:38:31 2017 -0700
@@ -94,7 +94,6 @@
}
IoTHubMessage_Destroy(messageHandle);
}
- free((void*)buffer);
messageTrackingId++;
}
@@ -190,24 +189,7 @@
}
else
{
- IOTHUB_MESSAGE_HANDLE messageHandle = IoTHubMessage_CreateFromByteArray(destination, destinationSize);
- if (messageHandle == NULL)
- {
- printf("unable to create a new IoTHubMessage\r\n");
- }
- else
- {
- if (IoTHubClient_LL_SendEventAsync(iotHubClientHandle, messageHandle, sendCallback, (void*)1) != IOTHUB_CLIENT_OK)
- {
- printf("failed to hand over the message to IoTHubClient");
- }
- else
- {
- printf("IoTHubClient accepted the message for delivery\r\n");
- }
-
- IoTHubMessage_Destroy(messageHandle);
- }
+ sendMessage(iotHubClientHandle, destination, destinationSize);
free(destination);
}
}
