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

DeviceStateAccessor: fix incorrect initial parameter propagation; restore ability to connect to devices #52

Closed
wants to merge 1 commit into from

Conversation

lukaskollmer
Copy link
Member

♻️ Current situation & Problem

Trying to connect (via SpeziDevices) to a peripheral doesn't work because the nearby.onChange state observer is sent an initial false value, which causes the peripheral to immediately get discarded after being discovered.

⚙️ Release Notes

  • Fix issue that could prevent peripheral connection establishment

📚 Documentation

n/a

✅ Testing

n/a

📝 Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Copy link
Member

@Supereg Supereg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch. Thank you 🚀

@lukaskollmer
Copy link
Member Author

superseded by #53

lukaskollmer added a commit that referenced this pull request Nov 23, 2024
…estore ability to connect to devices (#53)

## ♻️ Current situation & Problem
Trying to connect (via SpeziDevices) to a peripheral doesn't work
because the `nearby.onChange` state observer is sent an initial `false`
value, which causes the peripheral to immediately get discarded after
being discovered.


## ⚙️ Release Notes 
- Fix issue that could prevent peripheral connection establishment


## 📚 Documentation
n/a


## ✅ Testing
n/a


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).

---
Note: this PR supersedes #52 (the difference being that this one is made
from an repo-internal branch, which @PSchmiedmayer said was required for
some of the actions to properly run)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants