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:
- 39:405f9c637ba4
- Parent:
- 38:eb426458564b
- Child:
- 41:7a930aa6dc01
--- a/iothub_client_sample_http.c Sun Apr 24 16:42:03 2016 -0700 +++ b/iothub_client_sample_http.c Mon May 09 14:38:17 2016 -0700 @@ -23,9 +23,11 @@ #include "certs.h" #endif // MBED_BUILD_TIMESTAMP -/*String containing Hostname, Device Id & Device Key in the format: */ -/* "HostName=<host_name>;DeviceId=<device_id>;SharedAccessKey=<device_key>" */ +/*String containing Hostname, Device Id & Device Key in the format: */ +/* "HostName=<host_name>;DeviceId=<device_id>;SharedAccessKey=<device_key>" */ +/* "HostName=<host_name>;DeviceId=<device_id>;SharedAccessSignature=<device_sas_token>" */ static const char* connectionString = "[device connection string]"; + static int callbackCounter; DEFINE_ENUM_STRINGS(IOTHUB_CLIENT_CONFIRMATION_RESULT, IOTHUB_CLIENT_CONFIRMATION_RESULT_VALUES);