From 8f6b58ebdab478af87b7b470d32ca10de3105d07 Mon Sep 17 00:00:00 2001 From: Tim Taylor Date: Thu, 23 Apr 2026 14:20:46 -0700 Subject: [PATCH 1/2] Small doc update --- .../com/microsoft/azure/sdk/iot/device/InternalClient.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java b/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java index 313055dcf9..cb4aedc635 100644 --- a/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java +++ b/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java @@ -542,7 +542,8 @@ public Twin getTwin(int timeoutMilliseconds) throws InterruptedException, Illega *

* This subscription is preserved between reconnect attempts. However, it is not preserved after a client has * been closed because the user called {@link #close()} or because this client lost its connection and its retry - * policy was exhausted. + * policy was exhausted. It is also not preserved if, when using MQTT, the reconnection takes long enough that the + * MQTT session is lost before a successful CONNACK. *

* @param methodCallback Callback on which direct methods shall be invoked. Cannot be {@code null}. * @param methodCallbackContext Context for device method callback. Can be {@code null}. @@ -565,7 +566,8 @@ public void subscribeToMethods(MethodCallback methodCallback, Object methodCallb *

* This subscription is preserved between reconnect attempts. However, it is not preserved after a client has * been closed because the user called {@link #close()} or because this client lost its connection and its retry - * policy was exhausted. + * policy was exhausted. It is also not preserved if, when using MQTT, the reconnection takes long enough that the + * MQTT session is lost before a successful CONNACK. *

* @param methodCallback Callback on which direct methods shall be invoked. Cannot be {@code null}. * @param methodCallbackContext Context for device method callback. Can be {@code null}. From d901cbc146c9f75438c6b6d141791a8ab4dd72cc Mon Sep 17 00:00:00 2001 From: Tim Taylor Date: Thu, 23 Apr 2026 14:21:26 -0700 Subject: [PATCH 2/2] more --- .../com/microsoft/azure/sdk/iot/device/InternalClient.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java b/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java index cb4aedc635..18e146ac52 100644 --- a/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java +++ b/iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/InternalClient.java @@ -321,7 +321,8 @@ public void sendEvents(List messages, int timeoutMilliseconds) *

* This subscription is preserved between reconnect attempts. However, it is not preserved after a client has * been closed because the user called {@link #close()} or because this client lost its connection and its retry - * policy was exhausted. + * policy was exhausted. It is also not preserved if, when using MQTT, the reconnection takes long enough that the + * MQTT session is lost before a successful CONNACK. *

* @param desiredPropertiesCallback The callback to execute each time a desired property update message is received * from the service. This will contain one or many properties updated at once. @@ -345,7 +346,8 @@ public void subscribeToDesiredProperties(DesiredPropertiesCallback desiredProper *

* This subscription is preserved between reconnect attempts. However, it is not preserved after a client has * been closed because the user called {@link #close()} or because this client lost its connection and its retry - * policy was exhausted. + * policy was exhausted. It is also not preserved if, when using MQTT, the reconnection takes long enough that the + * MQTT session is lost before a successful CONNACK. *

* @param desiredPropertiesCallback The callback to execute each time a desired property update message is received * from the service. This will contain one or many properties updated at once.