You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Miscellaneous documentation cleanup:
* Document SetOption should be used right after handle creation, not at arbitrary times.
* Document that `timeout` parameter isn't respected during device/module method calls.
* Document that CreateFromEnvironment API for creating handles inside IoT Edge containers requires MQTT protocol.
* Fixup some doxygen warnings.
You should set the options you need right after creating your IoT Hub device or module handle. Setting most options after the connection has been initiated may be silently ignored or applied much later. Many of these are used at connection initiation time itself.
50
+
49
51
50
52
## Common Transport Options
51
53
You can use the options below for the IoT Hub Device Client, the IoT Hub Module Client, and for the Device Provisioning Client. These options are declared in [shared_util_options.h][shared-util-options-h].
@@ -63,8 +65,6 @@ You can use the options below for the IoT Hub Device Client, the IoT Hub Module
63
65
| `"tls_version"` | OPTION_TLS_VERSION | int* | TLS version to use for openssl, 10 for version 1.0, 11 for version 1.1, 12 for version 1.2. (**DEPRECATED**: TLS 1.0 and 1.1 are not secure and should not be used. This option is included only for backward compatibility.)
64
66
65
67
66
-
<aname="IotHub_options"></a>
67
-
68
68
## IoT Hub Device and Module Client Options
69
69
You can use the options below for IoT Hub connections. These options are declared in [iothub_client_options.h][iothub-client-options-h].
70
70
@@ -84,8 +84,6 @@ You may also use [common transport options](#general_options) options.
84
84
| `"do_work_freq_ms"` | OPTION_DO_WORK_FREQUENCY_IN_MS | [tickcounter_ms_t *][tick-counter-header] | Specifies how frequently the worker thread spun by the convenience layer will wake up, in milliseconds. The default is 1 millisecond. The maximum allowable value is 100. (Convenience layer APIs only)
85
85
86
86
87
-
<aname="protocol_specific_options"></a>
88
-
89
87
## MQTT, AMQP, and HTTP Specific Protocol Options
90
88
91
89
Some options are only supported by a given protocol (e.g. MQTT, AMQP, HTTP). These are declared in [iothub_client_options.h][iothub-client-options-h].
@@ -115,8 +113,6 @@ Some options are only supported by a given protocol (e.g. MQTT, AMQP, HTTP). Th
115
113
| `"MinimumPollingTime"` | OPTION_MIN_POLLING_TIME | unsigned int* | Minimum time in seconds allowed between 2 consecutive GET issues to the service
116
114
| `"timeout"` | OPTION_HTTP_TIMEOUT | long* | When using curl the amount of time before the request times out, defaults to 242 seconds.
117
115
118
-
<aname="provisioning_option"></a>
119
-
120
116
## Device Provisioning Service (DPS) Client Options
121
117
122
118
You can use the options below to configure the DPS client. These are defined in [prov_device_ll_client.h][provisioning-device-ll-client-options-h] except for `PROV_OPTION_DO_WORK_FREQUENCY_IN_MS` which is defined in [prov_device_client.h][provisioning-device-client-options-h].
@@ -130,8 +126,6 @@ You may also use [common transport options](#general_options).
130
126
| `"provisioning_timeout"` | PROV_OPTION_TIMEOUT | long* | Maximum time to allow DPS to complete, in seconds.
131
127
| `"do_work_freq_ms"` | PROV_OPTION_DO_WORK_FREQUENCY_IN_MS | uint16_t * | Specifies how frequently the worker thread spun by the convenience layer will wake up, in milliseconds. The default is 1 millisecond. (Convenience layer APIs only)
132
128
133
-
<aname="upload-options"></a>
134
-
135
129
## File Upload Options
136
130
137
131
When you upload files to Azure with APIs like `IoTHubDeviceClient_LL_UploadToBlob`, most of the options described above are silently ignored. This is even though these APIs use the same IoT Hub handle as used for telemetry, device methods, and device twin. The reason the options are different is because the underlying transport is implemented differently for uploads.
Copy file name to clipboardexpand all lines: iothub_client/inc/iothub_device_client.h
+9-9
Original file line number
Diff line number
Diff line change
@@ -111,15 +111,15 @@ extern "C"
111
111
* @param eventConfirmationCallback The callback specified by the device for receiving
112
112
* confirmation of the delivery of the IoT Hub message.
113
113
* This callback can be expected to invoke the
114
-
* ::IoTHubDeviceClient_SendEventAsync function for the
114
+
* IoTHubDeviceClient_SendEventAsync function for the
115
115
* same message in an attempt to retry sending a failing
116
116
* message. The user can specify a @c NULL value here to
117
117
* indicate that no callback is required.
118
118
* @param userContextCallback User specified context that will be provided to the
119
119
* callback. This can be @c NULL.
120
120
*
121
121
* @b NOTE: The application behavior is undefined if the user calls
122
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
122
+
* the IoTHubDeviceClient_Destroy function from within any callback.
123
123
* @remarks
124
124
* The IOTHUB_MESSAGE_HANDLE instance provided as argument is copied by the function,
125
125
* so this argument can be destroyed by the calling application right after IoTHubDeviceClient_SendEventAsync returns.
@@ -155,7 +155,7 @@ extern "C"
155
155
* callback. This can be @c NULL.
156
156
*
157
157
* @b NOTE: The application behavior is undefined if the user calls
158
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
158
+
* the IoTHubDeviceClient_Destroy function from within any callback.
159
159
*
160
160
* @return IOTHUB_CLIENT_OK upon success or an error code upon failure.
161
161
*/
@@ -172,7 +172,7 @@ extern "C"
172
172
* callback. This can be @c NULL.
173
173
*
174
174
* @b NOTE: The application behavior is undefined if the user calls
175
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
175
+
* the IoTHubDeviceClient_Destroy function from within any callback.
176
176
*
177
177
* @remark Callback specified will not receive connection status change notifications for upload connections created with IoTHubDeviceClient_UploadToBlob or IoTHubDeviceClient_UploadMultipleBlocksToBlob.
178
178
*
@@ -191,7 +191,7 @@ extern "C"
191
191
* connection drops to IOT Hub.
192
192
*
193
193
* @b NOTE: The application behavior is undefined if the user calls
194
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
194
+
* the IoTHubDeviceClient_Destroy function from within any callback.
195
195
*
196
196
* @remark Uploads initiated by IoTHubDeviceClient_UploadToBlob or IoTHubDeviceClient_UploadMultipleBlocksToBlob do not have automatic retries and do not honor the retryPolicy settings.
197
197
*
@@ -209,7 +209,7 @@ extern "C"
209
209
* to IOT Hub.
210
210
*
211
211
* @b NOTE: The application behavior is undefined if the user calls
212
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
212
+
* the IoTHubDeviceClient_Destroy function from within any callback.
213
213
*
214
214
* @return IOTHUB_CLIENT_OK upon success or an error code upon failure.
215
215
*/
@@ -257,7 +257,7 @@ extern "C"
257
257
* callback. This can be @c NULL.
258
258
*
259
259
* @b NOTE: The application behavior is undefined if the user calls
260
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
260
+
* the IoTHubDeviceClient_Destroy function from within any callback.
261
261
*
262
262
* @return IOTHUB_CLIENT_OK upon success or an error code upon failure.
263
263
*/
@@ -274,7 +274,7 @@ extern "C"
274
274
* callback. This can be @c NULL.
275
275
*
276
276
* @b NOTE: The application behavior is undefined if the user calls
277
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
277
+
* the IoTHubDeviceClient_Destroy function from within any callback.
278
278
*
279
279
* @return IOTHUB_CLIENT_OK upon success or an error code upon failure.
280
280
*/
@@ -290,7 +290,7 @@ extern "C"
290
290
* callback. This can be @c NULL.
291
291
*
292
292
* @b NOTE: The application behavior is undefined if the user calls
293
-
* the ::IoTHubDeviceClient_Destroy function from within any callback.
293
+
* the IoTHubDeviceClient_Destroy function from within any callback.
294
294
*
295
295
* @return IOTHUB_CLIENT_OK upon success or an error code upon failure.
* @b NOTE: The application behavior is undefined if the user calls
179
-
* the ::IoTHubDeviceClient_LL_Destroy function from within any callback.
179
+
* the IoTHubDeviceClient_LL_Destroy function from within any callback.
180
180
*
181
181
* @remark Callback specified will not receive connection status change notifications for upload connections created with IoTHubDeviceClient_LL_UploadToBlob or IoTHubDeviceClient_LL_UploadMultipleBlocksToBlob.
* @b NOTE: The application behavior is undefined if the user calls
198
-
* the ::IoTHubDeviceClient_LL_Destroy function from within any callback.
198
+
* the IoTHubDeviceClient_LL_Destroy function from within any callback.
199
199
*
200
200
* @remark Uploads initiated by IoTHubDeviceClient_LL_UploadToBlob or IoTHubDeviceClient_LL_UploadMultipleBlocksToBlob do not have automatic retries and do not honor the retryPolicy settings.
0 commit comments