Azure IoT / Mbed 2 deprecated simplesample_mqtt

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed wolfSSL azure_c_shared_utility iothub_client azure_umqtt_c iothub_mqtt_transport serializer

Files at this revision

API Documentation at this revision

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

azure_c_shared_utility.lib Show annotated file Show diff for this revision Revisions of this file
iothub_client.lib Show annotated file Show diff for this revision Revisions of this file
iothub_mqtt_transport.lib Show annotated file Show diff for this revision Revisions of this file
serializer.lib Show annotated file Show diff for this revision Revisions of this file
simplesample_mqtt.c Show annotated file Show diff for this revision Revisions of this file
--- 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);
                             }
                         }