A simple IoTHub sample using HTTP as transport
Dependencies: EthernetInterface NTPClient iothub_client iothub_http_transport mbed-rtos mbed wolfSSL serializer azure_c_shared_utility
This sample showcases the usage of Azure IoT client libraries with the HTTP transport for sending/receiving raw messages from an IoT Hub.
Revision 89:e4502f210191, committed 2018-09-11
- Comitter:
- AzureIoTClient
- Date:
- Tue Sep 11 11:17:43 2018 -0700
- Parent:
- 88:93dd24a18481
- Child:
- 90:7aa2459f031c
- Commit message:
- 1.2.9
Changed in this revision
--- a/azure_c_shared_utility.lib Thu Jul 12 18:13:10 2018 -0700 +++ b/azure_c_shared_utility.lib Tue Sep 11 11:17:43 2018 -0700 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/AzureIoTClient/code/azure_c_shared_utility/#e59b74c745bc \ No newline at end of file +https://developer.mbed.org/users/AzureIoTClient/code/azure_c_shared_utility/#81866008bba4 \ No newline at end of file
--- a/certs.c Thu Jul 12 18:13:10 2018 -0700 +++ b/certs.c Tue Sep 11 11:17:43 2018 -0700 @@ -5,7 +5,7 @@ #include "certs.h" -const char certificates[] = +const char certificates[] = /* DigiCert Baltimore Root */ "-----BEGIN CERTIFICATE-----\r\n" "MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJ\r\n"
--- a/certs.h Thu Jul 12 18:13:10 2018 -0700 +++ b/certs.h Tue Sep 11 11:17:43 2018 -0700 @@ -9,7 +9,7 @@ { #endif - extern const char certificates[]; + extern const char certificates[]; #ifdef __cplusplus }
--- a/iothub_client.lib Thu Jul 12 18:13:10 2018 -0700 +++ b/iothub_client.lib Tue Sep 11 11:17:43 2018 -0700 @@ -1,1 +1,1 @@ -http://mbed.org/users/AzureIoTClient/code/iothub_client/#bbf806070c5f \ No newline at end of file +http://mbed.org/users/AzureIoTClient/code/iothub_client/#97148cf9aa2a \ No newline at end of file
--- a/iothub_http_transport.lib Thu Jul 12 18:13:10 2018 -0700 +++ b/iothub_http_transport.lib Tue Sep 11 11:17:43 2018 -0700 @@ -1,1 +1,1 @@ -http://mbed.org/users/AzureIoTClient/code/iothub_http_transport/#ce4c05dd8a6d \ No newline at end of file +http://mbed.org/users/AzureIoTClient/code/iothub_http_transport/#01bf35934f1b \ No newline at end of file
--- a/serializer.lib Thu Jul 12 18:13:10 2018 -0700 +++ b/serializer.lib Tue Sep 11 11:17:43 2018 -0700 @@ -1,1 +1,1 @@ -http://mbed.org/users/AzureIoTClient/code/serializer/#ede97b73d1bb \ No newline at end of file +http://mbed.org/users/AzureIoTClient/code/serializer/#7d12a5386197 \ No newline at end of file
--- a/simplesample_http.c Thu Jul 12 18:13:10 2018 -0700 +++ b/simplesample_http.c Tue Sep 11 11:17:43 2018 -0700 @@ -1,6 +1,11 @@ // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. +// +// IMPORTANT: Please read and understand serializer limitations and alternatives as +// described ../../readme.md before beginning to use the serializer. +// + #include <stdlib.h> #include <stdio.h> @@ -123,7 +128,7 @@ else { EXECUTE_COMMAND_RESULT executeCommandResult; - + (void)memcpy(temp, buffer, size); temp[size] = '\0'; executeCommandResult = EXECUTE_COMMAND(userContextCallback, temp); @@ -164,7 +169,7 @@ } else { - // Because it can poll "after 9 seconds" polls will happen + // Because it can poll "after 9 seconds" polls will happen // effectively at ~10 seconds. // Note that for scalabilty, the default value of minimumPollingTime // is 25 minutes. For more information, see: