Microsoft Azure IoTHub client libraries

Dependents:   sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp f767zi_mqtt ... more

This library implements the Microsoft Azure IoTHub client library. The code is replicated from https://github.com/Azure/azure-iot-sdks

Committer:
AzureIoTClient
Date:
Mon Jun 11 15:39:23 2018 -0700
Revision:
88:248736be106e
Child:
89:a2ed767a532e
1.2.5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AzureIoTClient 88:248736be106e 1 // Copyright (c) Microsoft. All rights reserved.
AzureIoTClient 88:248736be106e 2 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
AzureIoTClient 88:248736be106e 3
AzureIoTClient 88:248736be106e 4 /* Shared structures and enums for iothub convenience layer and LL layer */
AzureIoTClient 88:248736be106e 5
AzureIoTClient 88:248736be106e 6 #ifndef IOTHUB_CLIENT_CORE_COMMON_H
AzureIoTClient 88:248736be106e 7 #define IOTHUB_CLIENT_CORE_COMMON_H
AzureIoTClient 88:248736be106e 8
AzureIoTClient 88:248736be106e 9 #include "azure_c_shared_utility/macro_utils.h"
AzureIoTClient 88:248736be106e 10 #include "azure_c_shared_utility/umock_c_prod.h"
AzureIoTClient 88:248736be106e 11
AzureIoTClient 88:248736be106e 12 #include "iothub_transport_ll.h"
AzureIoTClient 88:248736be106e 13 #include "iothub_message.h"
AzureIoTClient 88:248736be106e 14
AzureIoTClient 88:248736be106e 15 #ifdef __cplusplus
AzureIoTClient 88:248736be106e 16 extern "C"
AzureIoTClient 88:248736be106e 17 {
AzureIoTClient 88:248736be106e 18 #endif
AzureIoTClient 88:248736be106e 19
AzureIoTClient 88:248736be106e 20 #define IOTHUB_CLIENT_FILE_UPLOAD_RESULT_VALUES \
AzureIoTClient 88:248736be106e 21 FILE_UPLOAD_OK, \
AzureIoTClient 88:248736be106e 22 FILE_UPLOAD_ERROR
AzureIoTClient 88:248736be106e 23
AzureIoTClient 88:248736be106e 24 DEFINE_ENUM(IOTHUB_CLIENT_FILE_UPLOAD_RESULT, IOTHUB_CLIENT_FILE_UPLOAD_RESULT_VALUES)
AzureIoTClient 88:248736be106e 25 typedef void(*IOTHUB_CLIENT_FILE_UPLOAD_CALLBACK)(IOTHUB_CLIENT_FILE_UPLOAD_RESULT result, void* userContextCallback);
AzureIoTClient 88:248736be106e 26
AzureIoTClient 88:248736be106e 27 #define IOTHUB_CLIENT_RESULT_VALUES \
AzureIoTClient 88:248736be106e 28 IOTHUB_CLIENT_OK, \
AzureIoTClient 88:248736be106e 29 IOTHUB_CLIENT_INVALID_ARG, \
AzureIoTClient 88:248736be106e 30 IOTHUB_CLIENT_ERROR, \
AzureIoTClient 88:248736be106e 31 IOTHUB_CLIENT_INVALID_SIZE, \
AzureIoTClient 88:248736be106e 32 IOTHUB_CLIENT_INDEFINITE_TIME
AzureIoTClient 88:248736be106e 33
AzureIoTClient 88:248736be106e 34 /** @brief Enumeration specifying the status of calls to various APIs in this module.
AzureIoTClient 88:248736be106e 35 */
AzureIoTClient 88:248736be106e 36
AzureIoTClient 88:248736be106e 37 DEFINE_ENUM(IOTHUB_CLIENT_RESULT, IOTHUB_CLIENT_RESULT_VALUES);
AzureIoTClient 88:248736be106e 38
AzureIoTClient 88:248736be106e 39 #define IOTHUB_CLIENT_RETRY_POLICY_VALUES \
AzureIoTClient 88:248736be106e 40 IOTHUB_CLIENT_RETRY_NONE, \
AzureIoTClient 88:248736be106e 41 IOTHUB_CLIENT_RETRY_IMMEDIATE, \
AzureIoTClient 88:248736be106e 42 IOTHUB_CLIENT_RETRY_INTERVAL, \
AzureIoTClient 88:248736be106e 43 IOTHUB_CLIENT_RETRY_LINEAR_BACKOFF, \
AzureIoTClient 88:248736be106e 44 IOTHUB_CLIENT_RETRY_EXPONENTIAL_BACKOFF, \
AzureIoTClient 88:248736be106e 45 IOTHUB_CLIENT_RETRY_EXPONENTIAL_BACKOFF_WITH_JITTER, \
AzureIoTClient 88:248736be106e 46 IOTHUB_CLIENT_RETRY_RANDOM
AzureIoTClient 88:248736be106e 47
AzureIoTClient 88:248736be106e 48 /** @brief Enumeration passed in by the IoT Hub when the event confirmation
AzureIoTClient 88:248736be106e 49 * callback is invoked to indicate status of the event processing in
AzureIoTClient 88:248736be106e 50 * the hub.
AzureIoTClient 88:248736be106e 51 */
AzureIoTClient 88:248736be106e 52 DEFINE_ENUM(IOTHUB_CLIENT_RETRY_POLICY, IOTHUB_CLIENT_RETRY_POLICY_VALUES);
AzureIoTClient 88:248736be106e 53
AzureIoTClient 88:248736be106e 54 struct IOTHUBTRANSPORT_CONFIG_TAG;
AzureIoTClient 88:248736be106e 55 typedef struct IOTHUBTRANSPORT_CONFIG_TAG IOTHUBTRANSPORT_CONFIG;
AzureIoTClient 88:248736be106e 56
AzureIoTClient 88:248736be106e 57 #define IOTHUB_CLIENT_STATUS_VALUES \
AzureIoTClient 88:248736be106e 58 IOTHUB_CLIENT_SEND_STATUS_IDLE, \
AzureIoTClient 88:248736be106e 59 IOTHUB_CLIENT_SEND_STATUS_BUSY
AzureIoTClient 88:248736be106e 60
AzureIoTClient 88:248736be106e 61 /** @brief Enumeration returned by the ::IoTHubClient_LL_GetSendStatus
AzureIoTClient 88:248736be106e 62 * API to indicate the current sending status of the IoT Hub client.
AzureIoTClient 88:248736be106e 63 */
AzureIoTClient 88:248736be106e 64 DEFINE_ENUM(IOTHUB_CLIENT_STATUS, IOTHUB_CLIENT_STATUS_VALUES);
AzureIoTClient 88:248736be106e 65
AzureIoTClient 88:248736be106e 66 #define IOTHUB_IDENTITY_TYPE_VALUE \
AzureIoTClient 88:248736be106e 67 IOTHUB_TYPE_TELEMETRY, \
AzureIoTClient 88:248736be106e 68 IOTHUB_TYPE_DEVICE_TWIN, \
AzureIoTClient 88:248736be106e 69 IOTHUB_TYPE_DEVICE_METHODS
AzureIoTClient 88:248736be106e 70 DEFINE_ENUM(IOTHUB_IDENTITY_TYPE, IOTHUB_IDENTITY_TYPE_VALUE);
AzureIoTClient 88:248736be106e 71
AzureIoTClient 88:248736be106e 72 #define IOTHUB_PROCESS_ITEM_RESULT_VALUE \
AzureIoTClient 88:248736be106e 73 IOTHUB_PROCESS_OK, \
AzureIoTClient 88:248736be106e 74 IOTHUB_PROCESS_ERROR, \
AzureIoTClient 88:248736be106e 75 IOTHUB_PROCESS_NOT_CONNECTED, \
AzureIoTClient 88:248736be106e 76 IOTHUB_PROCESS_CONTINUE
AzureIoTClient 88:248736be106e 77 DEFINE_ENUM(IOTHUB_PROCESS_ITEM_RESULT, IOTHUB_PROCESS_ITEM_RESULT_VALUE);
AzureIoTClient 88:248736be106e 78
AzureIoTClient 88:248736be106e 79 #define IOTHUBMESSAGE_DISPOSITION_RESULT_VALUES \
AzureIoTClient 88:248736be106e 80 IOTHUBMESSAGE_ACCEPTED, \
AzureIoTClient 88:248736be106e 81 IOTHUBMESSAGE_REJECTED, \
AzureIoTClient 88:248736be106e 82 IOTHUBMESSAGE_ABANDONED
AzureIoTClient 88:248736be106e 83
AzureIoTClient 88:248736be106e 84 /** @brief Enumeration returned by the callback which is invoked whenever the
AzureIoTClient 88:248736be106e 85 * IoT Hub sends a message to the device.
AzureIoTClient 88:248736be106e 86 */
AzureIoTClient 88:248736be106e 87 DEFINE_ENUM(IOTHUBMESSAGE_DISPOSITION_RESULT, IOTHUBMESSAGE_DISPOSITION_RESULT_VALUES);
AzureIoTClient 88:248736be106e 88
AzureIoTClient 88:248736be106e 89 #define IOTHUB_CLIENT_IOTHUB_METHOD_STATUS_VALUES \
AzureIoTClient 88:248736be106e 90 IOTHUB_CLIENT_IOTHUB_METHOD_STATUS_SUCCESS, \
AzureIoTClient 88:248736be106e 91 IOTHUB_CLIENT_IOTHUB_METHOD_STATUS_ERROR \
AzureIoTClient 88:248736be106e 92
AzureIoTClient 88:248736be106e 93 /** @brief Enumeration returned by remotely executed functions
AzureIoTClient 88:248736be106e 94 */
AzureIoTClient 88:248736be106e 95 DEFINE_ENUM(IOTHUB_CLIENT_IOTHUB_METHOD_STATUS, IOTHUB_CLIENT_IOTHUB_METHOD_STATUS_VALUES);
AzureIoTClient 88:248736be106e 96
AzureIoTClient 88:248736be106e 97
AzureIoTClient 88:248736be106e 98 #define IOTHUB_CLIENT_CONFIRMATION_RESULT_VALUES \
AzureIoTClient 88:248736be106e 99 IOTHUB_CLIENT_CONFIRMATION_OK, \
AzureIoTClient 88:248736be106e 100 IOTHUB_CLIENT_CONFIRMATION_BECAUSE_DESTROY, \
AzureIoTClient 88:248736be106e 101 IOTHUB_CLIENT_CONFIRMATION_MESSAGE_TIMEOUT, \
AzureIoTClient 88:248736be106e 102 IOTHUB_CLIENT_CONFIRMATION_ERROR \
AzureIoTClient 88:248736be106e 103
AzureIoTClient 88:248736be106e 104 /** @brief Enumeration passed in by the IoT Hub when the event confirmation
AzureIoTClient 88:248736be106e 105 * callback is invoked to indicate status of the event processing in
AzureIoTClient 88:248736be106e 106 * the hub.
AzureIoTClient 88:248736be106e 107 */
AzureIoTClient 88:248736be106e 108 DEFINE_ENUM(IOTHUB_CLIENT_CONFIRMATION_RESULT, IOTHUB_CLIENT_CONFIRMATION_RESULT_VALUES);
AzureIoTClient 88:248736be106e 109
AzureIoTClient 88:248736be106e 110 #define IOTHUB_CLIENT_CONNECTION_STATUS_VALUES \
AzureIoTClient 88:248736be106e 111 IOTHUB_CLIENT_CONNECTION_AUTHENTICATED, \
AzureIoTClient 88:248736be106e 112 IOTHUB_CLIENT_CONNECTION_UNAUTHENTICATED \
AzureIoTClient 88:248736be106e 113
AzureIoTClient 88:248736be106e 114
AzureIoTClient 88:248736be106e 115 /** @brief Enumeration passed in by the IoT Hub when the connection status
AzureIoTClient 88:248736be106e 116 * callback is invoked to indicate status of the connection in
AzureIoTClient 88:248736be106e 117 * the hub.
AzureIoTClient 88:248736be106e 118 */
AzureIoTClient 88:248736be106e 119 DEFINE_ENUM(IOTHUB_CLIENT_CONNECTION_STATUS, IOTHUB_CLIENT_CONNECTION_STATUS_VALUES);
AzureIoTClient 88:248736be106e 120
AzureIoTClient 88:248736be106e 121 #define IOTHUB_CLIENT_CONNECTION_STATUS_REASON_VALUES \
AzureIoTClient 88:248736be106e 122 IOTHUB_CLIENT_CONNECTION_EXPIRED_SAS_TOKEN, \
AzureIoTClient 88:248736be106e 123 IOTHUB_CLIENT_CONNECTION_DEVICE_DISABLED, \
AzureIoTClient 88:248736be106e 124 IOTHUB_CLIENT_CONNECTION_BAD_CREDENTIAL, \
AzureIoTClient 88:248736be106e 125 IOTHUB_CLIENT_CONNECTION_RETRY_EXPIRED, \
AzureIoTClient 88:248736be106e 126 IOTHUB_CLIENT_CONNECTION_NO_NETWORK, \
AzureIoTClient 88:248736be106e 127 IOTHUB_CLIENT_CONNECTION_COMMUNICATION_ERROR, \
AzureIoTClient 88:248736be106e 128 IOTHUB_CLIENT_CONNECTION_OK \
AzureIoTClient 88:248736be106e 129
AzureIoTClient 88:248736be106e 130 /** @brief Enumeration passed in by the IoT Hub when the connection status
AzureIoTClient 88:248736be106e 131 * callback is invoked to indicate status of the connection in
AzureIoTClient 88:248736be106e 132 * the hub.
AzureIoTClient 88:248736be106e 133 */
AzureIoTClient 88:248736be106e 134 DEFINE_ENUM(IOTHUB_CLIENT_CONNECTION_STATUS_REASON, IOTHUB_CLIENT_CONNECTION_STATUS_REASON_VALUES);
AzureIoTClient 88:248736be106e 135
AzureIoTClient 88:248736be106e 136 #define TRANSPORT_TYPE_VALUES \
AzureIoTClient 88:248736be106e 137 TRANSPORT_LL, /*LL comes from "LowLevel" */ \
AzureIoTClient 88:248736be106e 138 TRANSPORT_THREADED
AzureIoTClient 88:248736be106e 139
AzureIoTClient 88:248736be106e 140 DEFINE_ENUM(TRANSPORT_TYPE, TRANSPORT_TYPE_VALUES);
AzureIoTClient 88:248736be106e 141
AzureIoTClient 88:248736be106e 142 #define DEVICE_TWIN_UPDATE_STATE_VALUES \
AzureIoTClient 88:248736be106e 143 DEVICE_TWIN_UPDATE_COMPLETE, \
AzureIoTClient 88:248736be106e 144 DEVICE_TWIN_UPDATE_PARTIAL
AzureIoTClient 88:248736be106e 145
AzureIoTClient 88:248736be106e 146 DEFINE_ENUM(DEVICE_TWIN_UPDATE_STATE, DEVICE_TWIN_UPDATE_STATE_VALUES);
AzureIoTClient 88:248736be106e 147
AzureIoTClient 88:248736be106e 148 typedef void(*IOTHUB_CLIENT_EVENT_CONFIRMATION_CALLBACK)(IOTHUB_CLIENT_CONFIRMATION_RESULT result, void* userContextCallback);
AzureIoTClient 88:248736be106e 149 typedef void(*IOTHUB_CLIENT_CONNECTION_STATUS_CALLBACK)(IOTHUB_CLIENT_CONNECTION_STATUS result, IOTHUB_CLIENT_CONNECTION_STATUS_REASON reason, void* userContextCallback);
AzureIoTClient 88:248736be106e 150 typedef IOTHUBMESSAGE_DISPOSITION_RESULT (*IOTHUB_CLIENT_MESSAGE_CALLBACK_ASYNC)(IOTHUB_MESSAGE_HANDLE message, void* userContextCallback);
AzureIoTClient 88:248736be106e 151
AzureIoTClient 88:248736be106e 152 typedef void(*IOTHUB_CLIENT_DEVICE_TWIN_CALLBACK)(DEVICE_TWIN_UPDATE_STATE update_state, const unsigned char* payLoad, size_t size, void* userContextCallback);
AzureIoTClient 88:248736be106e 153 typedef void(*IOTHUB_CLIENT_REPORTED_STATE_CALLBACK)(int status_code, void* userContextCallback);
AzureIoTClient 88:248736be106e 154 typedef int(*IOTHUB_CLIENT_DEVICE_METHOD_CALLBACK_ASYNC)(const char* method_name, const unsigned char* payload, size_t size, unsigned char** response, size_t* response_size, void* userContextCallback);
AzureIoTClient 88:248736be106e 155 typedef int(*IOTHUB_CLIENT_INBOUND_DEVICE_METHOD_CALLBACK)(const char* method_name, const unsigned char* payload, size_t size, METHOD_HANDLE method_id, void* userContextCallback);
AzureIoTClient 88:248736be106e 156
AzureIoTClient 88:248736be106e 157 #ifndef DONT_USE_UPLOADTOBLOB
AzureIoTClient 88:248736be106e 158
AzureIoTClient 88:248736be106e 159 #define IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_RESULT_VALUES \
AzureIoTClient 88:248736be106e 160 IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_OK, \
AzureIoTClient 88:248736be106e 161 IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_ABORT
AzureIoTClient 88:248736be106e 162
AzureIoTClient 88:248736be106e 163 DEFINE_ENUM(IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_RESULT, IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_RESULT_VALUES);
AzureIoTClient 88:248736be106e 164
AzureIoTClient 88:248736be106e 165 /**
AzureIoTClient 88:248736be106e 166 * @brief Callback invoked by IoTHubClient_UploadMultipleBlocksToBlobAsync requesting the chunks of data to be uploaded.
AzureIoTClient 88:248736be106e 167 * @param result The result of the upload of the previous block of data provided by the user (IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_CALLBACK_EX only)
AzureIoTClient 88:248736be106e 168 * @param data Next block of data to be uploaded, to be provided by the user when this callback is invoked.
AzureIoTClient 88:248736be106e 169 * @param size Size of the data parameter.
AzureIoTClient 88:248736be106e 170 * @param context User context provided on the call to IoTHubClient_UploadMultipleBlocksToBlobAsync.
AzureIoTClient 88:248736be106e 171 * @remarks If the user wants to abort the upload, the callback should return IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_ABORT
AzureIoTClient 88:248736be106e 172 * It should return IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_OK otherwise.
AzureIoTClient 88:248736be106e 173 * If a NULL is provided for parameter "data" and/or zero is provided for "size", the user indicates to the client that the complete file has been uploaded.
AzureIoTClient 88:248736be106e 174 * In such case this callback will be invoked only once more to indicate the status of the final block upload.
AzureIoTClient 88:248736be106e 175 * If result is not FILE_UPLOAD_OK, the download is cancelled and this callback stops being invoked.
AzureIoTClient 88:248736be106e 176 * When this callback is called for the last time, no data or size is expected, so data and size are set to NULL
AzureIoTClient 88:248736be106e 177 */
AzureIoTClient 88:248736be106e 178 typedef void(*IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_CALLBACK)(IOTHUB_CLIENT_FILE_UPLOAD_RESULT result, unsigned char const ** data, size_t* size, void* context);
AzureIoTClient 88:248736be106e 179 typedef IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_RESULT(*IOTHUB_CLIENT_FILE_UPLOAD_GET_DATA_CALLBACK_EX)(IOTHUB_CLIENT_FILE_UPLOAD_RESULT result, unsigned char const ** data, size_t* size, void* context);
AzureIoTClient 88:248736be106e 180 #endif /* DONT_USE_UPLOADTOBLOB */
AzureIoTClient 88:248736be106e 181
AzureIoTClient 88:248736be106e 182 /** @brief This struct captures IoTHub client configuration. */
AzureIoTClient 88:248736be106e 183 typedef struct IOTHUB_CLIENT_CONFIG_TAG
AzureIoTClient 88:248736be106e 184 {
AzureIoTClient 88:248736be106e 185 /** @brief A function pointer that is passed into the @c IoTHubClientCreate.
AzureIoTClient 88:248736be106e 186 * A function definition for AMQP is defined in the include @c iothubtransportamqp.h.
AzureIoTClient 88:248736be106e 187 * A function definition for HTTP is defined in the include @c iothubtransporthttp.h
AzureIoTClient 88:248736be106e 188 * A function definition for MQTT is defined in the include @c iothubtransportmqtt.h */
AzureIoTClient 88:248736be106e 189 IOTHUB_CLIENT_TRANSPORT_PROVIDER protocol;
AzureIoTClient 88:248736be106e 190
AzureIoTClient 88:248736be106e 191 /** @brief A string that identifies the device. */
AzureIoTClient 88:248736be106e 192 const char* deviceId;
AzureIoTClient 88:248736be106e 193
AzureIoTClient 88:248736be106e 194 /** @brief The device key used to authenticate the device.
AzureIoTClient 88:248736be106e 195 If neither deviceSasToken nor deviceKey is present then the authentication is assumed x509.*/
AzureIoTClient 88:248736be106e 196 const char* deviceKey;
AzureIoTClient 88:248736be106e 197
AzureIoTClient 88:248736be106e 198 /** @brief The device SAS Token used to authenticate the device in place of device key.
AzureIoTClient 88:248736be106e 199 If neither deviceSasToken nor deviceKey is present then the authentication is assumed x509.*/
AzureIoTClient 88:248736be106e 200 const char* deviceSasToken;
AzureIoTClient 88:248736be106e 201
AzureIoTClient 88:248736be106e 202 /** @brief The IoT Hub name to which the device is connecting. */
AzureIoTClient 88:248736be106e 203 const char* iotHubName;
AzureIoTClient 88:248736be106e 204
AzureIoTClient 88:248736be106e 205 /** @brief IoT Hub suffix goes here, e.g., private.azure-devices-int.net. */
AzureIoTClient 88:248736be106e 206 const char* iotHubSuffix;
AzureIoTClient 88:248736be106e 207
AzureIoTClient 88:248736be106e 208 const char* protocolGatewayHostName;
AzureIoTClient 88:248736be106e 209 } IOTHUB_CLIENT_CONFIG;
AzureIoTClient 88:248736be106e 210
AzureIoTClient 88:248736be106e 211 /** @brief This struct captures IoTHub client device configuration. */
AzureIoTClient 88:248736be106e 212 typedef struct IOTHUB_CLIENT_DEVICE_CONFIG_TAG
AzureIoTClient 88:248736be106e 213 {
AzureIoTClient 88:248736be106e 214 /** @brief A function pointer that is passed into the @c IoTHubClientCreate.
AzureIoTClient 88:248736be106e 215 * A function definition for AMQP is defined in the include @c iothubtransportamqp.h.
AzureIoTClient 88:248736be106e 216 * A function definition for HTTP is defined in the include @c iothubtransporthttp.h
AzureIoTClient 88:248736be106e 217 * A function definition for MQTT is defined in the include @c iothubtransportmqtt.h */
AzureIoTClient 88:248736be106e 218 IOTHUB_CLIENT_TRANSPORT_PROVIDER protocol;
AzureIoTClient 88:248736be106e 219
AzureIoTClient 88:248736be106e 220 /** @brief a transport handle implementing the protocol */
AzureIoTClient 88:248736be106e 221 void * transportHandle;
AzureIoTClient 88:248736be106e 222
AzureIoTClient 88:248736be106e 223 /** @brief A string that identifies the device. */
AzureIoTClient 88:248736be106e 224 const char* deviceId;
AzureIoTClient 88:248736be106e 225
AzureIoTClient 88:248736be106e 226 /** @brief The device key used to authenticate the device.
AzureIoTClient 88:248736be106e 227 x509 authentication is is not supported for multiplexed connections*/
AzureIoTClient 88:248736be106e 228 const char* deviceKey;
AzureIoTClient 88:248736be106e 229
AzureIoTClient 88:248736be106e 230 /** @brief The device SAS Token used to authenticate the device in place of device key.
AzureIoTClient 88:248736be106e 231 x509 authentication is is not supported for multiplexed connections.*/
AzureIoTClient 88:248736be106e 232 const char* deviceSasToken;
AzureIoTClient 88:248736be106e 233 } IOTHUB_CLIENT_DEVICE_CONFIG;
AzureIoTClient 88:248736be106e 234
AzureIoTClient 88:248736be106e 235 #ifdef __cplusplus
AzureIoTClient 88:248736be106e 236 }
AzureIoTClient 88:248736be106e 237 #endif
AzureIoTClient 88:248736be106e 238
AzureIoTClient 88:248736be106e 239 #endif /* IOTHUB_CLIENT_CORE_COMMON_H */