diff --git a/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java b/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java index d6385523879998..5a005a219af7a8 100644 --- a/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java +++ b/src/controller/java/src/chip/devicecontroller/ChipDeviceController.java @@ -580,8 +580,6 @@ public byte[] getAttestationChallenge(long devicePtr) { * @brief Auto-Resubscribe to the given attribute path with keepSubscriptions and isFabricFiltered * @param SubscriptionEstablishedCallback Callback when a subscribe response has been received and * processed - * @param ResubscriptionAttemptCallback Callback when a resubscirption haoppens, the termination - * cause is provided to help inform subsequent re-subscription logic. * @param ReportCallback Callback when a report data has been received and processed for the given * paths. * @param devicePtr connected device pointer @@ -619,8 +617,6 @@ public void subscribeToAttributePath( * @brief Auto-Resubscribe to the given event path with keepSubscriptions and isFabricFiltered * @param SubscriptionEstablishedCallback Callback when a subscribe response has been received and * processed - * @param ResubscriptionAttemptCallback Callback when a resubscirption haoppens, the termination - * cause is provided to help inform subsequent re-subscription logic. * @param ReportCallback Callback when a report data has been received and processed for the given * paths. * @param devicePtr connected device pointer @@ -741,10 +737,9 @@ public void subscribeToPath( boolean isFabricFiltered, int imTimeoutMs, @Nullable Long eventMin) { - // TODO: pass resubscriptionAttemptCallback to ReportCallbackJni since jni layer is not ready - // for auto-resubscribe ReportCallbackJni jniCallback = - new ReportCallbackJni(subscriptionEstablishedCallback, reportCallback, null); + new ReportCallbackJni( + subscriptionEstablishedCallback, reportCallback, resubscriptionAttemptCallback); subscribe( deviceControllerPtr, jniCallback.getCallbackHandle(),