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@14:fae5c6b2cce3, 2016-03-25 (annotated)
- Committer:
- Azure.IoT Build
- Date:
- Fri Mar 25 15:59:57 2016 -0700
- Revision:
- 14:fae5c6b2cce3
- Parent:
- 13:848d52f93daf
- Child:
- 15:52602fffff8d
Release 1.0.3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AzureIoTClient | 6:73793bae15ba | 1 | // Copyright (c) Microsoft. All rights reserved. |
AzureIoTClient | 6:73793bae15ba | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
AzureIoTClient | 6:73793bae15ba | 3 | |
AzureIoTClient | 6:73793bae15ba | 4 | #ifndef IOTHUBTRANSPORTHTTP_H |
AzureIoTClient | 6:73793bae15ba | 5 | #define IOTHUBTRANSPORTHTTP_H |
AzureIoTClient | 6:73793bae15ba | 6 | |
AzureIoTClient | 6:73793bae15ba | 7 | #include "iothub_client_private.h" |
AzureIoTClient | 6:73793bae15ba | 8 | |
AzureIoTClient | 6:73793bae15ba | 9 | #ifdef __cplusplus |
AzureIoTClient | 6:73793bae15ba | 10 | extern "C" |
AzureIoTClient | 6:73793bae15ba | 11 | { |
AzureIoTClient | 6:73793bae15ba | 12 | #endif |
AzureIoTClient | 6:73793bae15ba | 13 | |
Azure.IoT Build | 14:fae5c6b2cce3 | 14 | extern TRANSPORT_LL_HANDLE IoTHubTransportHttp_Create(const IOTHUBTRANSPORT_CONFIG* config); |
Azure.IoT Build | 14:fae5c6b2cce3 | 15 | extern void IoTHubTransportHttp_Destroy(TRANSPORT_LL_HANDLE handle); |
AzureIoTClient | 6:73793bae15ba | 16 | |
Azure.IoT Build | 14:fae5c6b2cce3 | 17 | extern IOTHUB_DEVICE_HANDLE IoTHubTransportHttp_Register(TRANSPORT_LL_HANDLE handle, const char* deviceId, const char* deviceKey, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle, PDLIST_ENTRY waitingToSend); |
Azure.IoT Build | 13:848d52f93daf | 18 | extern void IoTHubTransportHttp_Unregister(IOTHUB_DEVICE_HANDLE deviceHandle); |
Azure.IoT Build | 13:848d52f93daf | 19 | |
Azure.IoT Build | 13:848d52f93daf | 20 | extern int IoTHubTransportHttp_Subscribe(IOTHUB_DEVICE_HANDLE handle); |
Azure.IoT Build | 13:848d52f93daf | 21 | extern void IoTHubTransportHttp_Unsubscribe(IOTHUB_DEVICE_HANDLE handle); |
AzureIoTClient | 6:73793bae15ba | 22 | |
Azure.IoT Build | 14:fae5c6b2cce3 | 23 | extern void IoTHubTransportHttp_DoWork(TRANSPORT_LL_HANDLE handle, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle); |
AzureIoTClient | 6:73793bae15ba | 24 | |
Azure.IoT Build | 13:848d52f93daf | 25 | extern IOTHUB_CLIENT_RESULT IoTHubTransportHttp_GetSendStatus(IOTHUB_DEVICE_HANDLE handle, IOTHUB_CLIENT_STATUS *iotHubClientStatus); |
Azure.IoT Build | 14:fae5c6b2cce3 | 26 | extern IOTHUB_CLIENT_RESULT IoTHubTransportHttp_SetOption(TRANSPORT_LL_HANDLE handle, const char* optionName, const void* value); |
AzureIoTClient | 6:73793bae15ba | 27 | extern const void* HTTP_Protocol(void); |
AzureIoTClient | 6:73793bae15ba | 28 | |
AzureIoTClient | 6:73793bae15ba | 29 | #ifdef __cplusplus |
AzureIoTClient | 6:73793bae15ba | 30 | } |
AzureIoTClient | 6:73793bae15ba | 31 | #endif |
AzureIoTClient | 6:73793bae15ba | 32 | |
AzureIoTClient | 6:73793bae15ba | 33 | #endif /*IOTHUBTRANSPORTHTTP_H*/ |