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.
Diff: simplesample_http.c
- Revision:
- 78:4b96969617b3
- Parent:
- 73:124496f755ab
- Child:
- 89:e4502f210191
--- a/simplesample_http.c Fri Nov 17 14:02:09 2017 -0800 +++ b/simplesample_http.c Fri Dec 15 14:13:48 2017 -0800 @@ -11,15 +11,11 @@ Simply changing the using the convenience layer (functions not having _LL) and removing calls to _DoWork will yield the same results. */ -#ifdef ARDUINO -#include "AzureIoTHub.h" -#else #include "azure_c_shared_utility/threadapi.h" #include "azure_c_shared_utility/platform.h" #include "serializer.h" #include "iothub_client_ll.h" #include "iothubtransporthttp.h" -#endif #ifdef MBED_BUILD_TIMESTAMP #define SET_TRUSTED_CERT_IN_SAMPLES