Skip to content

Make pairing BroadcastReceiver optional#641

Merged
philips77 merged 2 commits intoNordicSemiconductor:mainfrom
mmeisel:optional-pairing
Feb 5, 2026
Merged

Make pairing BroadcastReceiver optional#641
philips77 merged 2 commits intoNordicSemiconductor:mainfrom
mmeisel:optional-pairing

Conversation

@mmeisel
Copy link
Contributor

@mmeisel mmeisel commented Jan 21, 2026

I wonder if you would be open to this PR?

This is ultimately just a workaround for #616, but that issue is very hard to debug. My use case is making repeated connections to many different devices (fetching time series data from a fleet of sensors) without any pairing. This will fix the problem for me and anyone who has a similar setup, but should be totally transparent to anyone else.

@philips77
Copy link
Member

Interesting approach. Indeed, by eliminating registering the receiver, you eliminate the issue.

One thing - I think it would be better to always unregister the receiver and ignore an error, so that method is called only once per connection.

@mmeisel
Copy link
Contributor Author

mmeisel commented Jan 22, 2026

Sure, that makes sense. Done!

@mmeisel
Copy link
Contributor Author

mmeisel commented Feb 3, 2026

Hi @philips77 just checking in to see if you're willing to merge this.

@philips77
Copy link
Member

Hi, sorry, I was busy with something else. Let's merge.

@philips77 philips77 merged commit 4a86e6c into NordicSemiconductor:main Feb 5, 2026
1 check passed
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