IoTHub raw messaging sample using HTTP
Dependencies: iothub_client EthernetInterface iothub_http_transport mbed-rtos mbed wolfSSL azure_c_shared_utility NTPClient
This sample showcases the usage of Azure IoT client libraries with the HTTP transport for sending/receiving raw messages from an IoT Hub.
Diff: iothub_client_sample_http.c
- Revision:
- 41:7a930aa6dc01
- Parent:
- 39:405f9c637ba4
- Child:
- 42:289de245ba1d
--- a/iothub_client_sample_http.c Mon May 23 07:36:47 2016 -0700 +++ b/iothub_client_sample_http.c Tue Jun 07 10:50:25 2016 -0700 @@ -5,9 +5,9 @@ #include <stdlib.h> /* This sample uses the _LL APIs of iothub_client for example purposes. - That does not mean that HTTP only works with the _LL APIs. - Simply changing the using the convenience layer (functions not having _LL) - and removing calls to _DoWork will yield the same results. */ +That does not mean that HTTP only works with the _LL APIs. +Simply changing the using the convenience layer (functions not having _LL) +and removing calls to _DoWork will yield the same results. */ #ifdef ARDUINO #include "AzureIoT.h" @@ -43,7 +43,7 @@ int* counter = (int*)userContextCallback; const char* buffer; size_t size; - MAP_HANDLE mapProperties; + MAP_HANDLE mapProperties; if (IoTHubMessage_GetByteArray(message, (const unsigned char**)&buffer, &size) != IOTHUB_MESSAGE_OK) { @@ -65,7 +65,7 @@ { if (propertyCount > 0) { - size_t index; + size_t index; printf("Message Properties:\r\n"); for (index = 0; index < propertyCount; index++)