Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix onFailureCb in MTRBaseDevice's subscribeToAttributePaths #26076

Closed
bzbarsky-apple opened this issue Apr 13, 2023 · 0 comments · Fixed by #26168
Closed

Fix onFailureCb in MTRBaseDevice's subscribeToAttributePaths #26076

bzbarsky-apple opened this issue Apr 13, 2023 · 0 comments · Fixed by #26168
Assignees

Comments

@bzbarsky-apple
Copy link
Contributor

See TODO comment being added in #25840: paths-specific failures are not handled correctly

@bzbarsky-apple bzbarsky-apple self-assigned this Apr 13, 2023
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue Apr 19, 2023
1) Improve documentation for subcribeTo* functions on MTRBaseDevice.
2) Fix the implementation to not call the subscriptionEstablished handler when
   the subscription actually errors out before the subscribe is complete.
3) Fix the error handling in the implementation to report path-specific errors
   using the same mechanism as MTRDevice.

Fixes project-chip#26076
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue Apr 19, 2023
1) Improve documentation for subcribeTo* functions on MTRBaseDevice.
2) Fix the implementation to not call the subscriptionEstablished handler when
   the subscription actually errors out before the subscribe is complete.
3) Fix the error handling in the implementation to report path-specific errors
   using the same mechanism as MTRDevice.

Fixes project-chip#26076
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue Apr 19, 2023
1) Improve documentation for subcribeTo* functions on MTRBaseDevice.
2) Fix the implementation to not call the subscriptionEstablished handler when
   the subscription actually errors out before the subscribe is complete.
3) Fix the error handling in the implementation to report path-specific errors
   using the same mechanism as MTRDevice.

Fixes project-chip#26076
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue Apr 20, 2023
1) Improve documentation for subcribeTo* functions on MTRBaseDevice.
2) Fix the implementation to not call the subscriptionEstablished handler when
   the subscription actually errors out before the subscribe is complete.
3) Fix the error handling in the implementation to report path-specific errors
   using the same mechanism as MTRDevice.

Fixes project-chip#26076
bzbarsky-apple added a commit that referenced this issue Apr 20, 2023
…#26168)

* Fix handling of path-specific errors in MTRBaseDevice subscribe code.

1) Improve documentation for subcribeTo* functions on MTRBaseDevice.
2) Fix the implementation to not call the subscriptionEstablished handler when
   the subscription actually errors out before the subscribe is complete.
3) Fix the error handling in the implementation to report path-specific errors
   using the same mechanism as MTRDevice.

Fixes #26076

* Address review comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant