Microsoft Azure IoTHub client HTTP transport
Dependents: iothub_client_sample_http simplesample_http temp_sensor_anomaly
This library implements the HTTP transport for Microsoft Azure IoTHub client. The code is replicated from https://github.com/Azure/azure-iot-sdks
iothubtransporthttp.h@3:4e9296134ffb, 2015-09-22 (annotated)
- Committer:
- AzureIoTClient
- Date:
- Tue Sep 22 20:36:43 2015 -0700
- Revision:
- 3:4e9296134ffb
- Parent:
- 0:fa2b00dcd9d4
New release
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AzureIoTClient | 0:fa2b00dcd9d4 | 1 | // Copyright (c) Microsoft. All rights reserved. |
AzureIoTClient | 0:fa2b00dcd9d4 | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
AzureIoTClient | 0:fa2b00dcd9d4 | 3 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 4 | #ifndef IOTHUBTRANSPORTHTTP_H |
AzureIoTClient | 0:fa2b00dcd9d4 | 5 | #define IOTHUBTRANSPORTHTTP_H |
AzureIoTClient | 0:fa2b00dcd9d4 | 6 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 7 | #include "iothub_client_private.h" |
AzureIoTClient | 0:fa2b00dcd9d4 | 8 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 9 | #ifdef __cplusplus |
AzureIoTClient | 0:fa2b00dcd9d4 | 10 | extern "C" |
AzureIoTClient | 0:fa2b00dcd9d4 | 11 | { |
AzureIoTClient | 0:fa2b00dcd9d4 | 12 | #endif |
AzureIoTClient | 0:fa2b00dcd9d4 | 13 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 14 | extern TRANSPORT_HANDLE IoTHubTransportHttp_Create(const IOTHUBTRANSPORT_CONFIG* config); |
AzureIoTClient | 0:fa2b00dcd9d4 | 15 | extern void IoTHubTransportHttp_Destroy(TRANSPORT_HANDLE handle); |
AzureIoTClient | 0:fa2b00dcd9d4 | 16 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 17 | extern int IoTHubTransportHttp_Subscribe(TRANSPORT_HANDLE handle); |
AzureIoTClient | 0:fa2b00dcd9d4 | 18 | extern void IoTHubTransportHttp_Unsubscribe(TRANSPORT_HANDLE handle); |
AzureIoTClient | 0:fa2b00dcd9d4 | 19 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 20 | extern void IoTHubTransportHttp_DoWork(TRANSPORT_HANDLE handle, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle); |
AzureIoTClient | 0:fa2b00dcd9d4 | 21 | |
AzureIoTClient | 3:4e9296134ffb | 22 | extern IOTHUB_CLIENT_RESULT IoTHubTransportHttp_GetSendStatus(TRANSPORT_HANDLE handle, IOTHUB_CLIENT_STATUS *iotHubClientStatus); |
AzureIoTClient | 0:fa2b00dcd9d4 | 23 | extern IOTHUB_CLIENT_RESULT IoTHubTransportHttp_SetOption(TRANSPORT_HANDLE handle, const char* optionName, const void* value); |
AzureIoTClient | 3:4e9296134ffb | 24 | extern const void* HTTP_Protocol(void); |
AzureIoTClient | 0:fa2b00dcd9d4 | 25 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 26 | #ifdef __cplusplus |
AzureIoTClient | 0:fa2b00dcd9d4 | 27 | } |
AzureIoTClient | 0:fa2b00dcd9d4 | 28 | #endif |
AzureIoTClient | 0:fa2b00dcd9d4 | 29 | |
AzureIoTClient | 0:fa2b00dcd9d4 | 30 | #endif /*IOTHUBTRANSPORTHTTP_H*/ |