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

Pairing enable / disable timeout #14

Open
unknownconstant opened this issue Jan 4, 2021 · 2 comments
Open

Pairing enable / disable timeout #14

unknownconstant opened this issue Jan 4, 2021 · 2 comments
Labels
Someday maybe Ideas to revisit & prioritise later

Comments

@unknownconstant
Copy link
Owner

Create function to allow developer to put BLE into pairing mode without a timeout so that if a device has not paired with a defined period that the device exits from pairing mode.

This could be implemented by the developer already by monitoring for key storage requests, however it would be simpler to pass a timeout to the library, or to at least provide an explicit callback to indicate a new device has paired

@unknownconstant unknownconstant added the Someday maybe Ideas to revisit & prioritise later label Jan 4, 2021
@eltos
Copy link

eltos commented Jan 4, 2021

provide an explicit callback to indicate a new device has paired

This sounds like a great idea, independent of implementation of a timeout. It could be implemented by extending the existing Connected/Disconnected event handlers.

@unknownconstant
Copy link
Owner Author

Yes - when I looked at your code I saw how you'd solved it and it makes sense. Providing further info in the event handlers is probably the way forward like you suggest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Someday maybe Ideas to revisit & prioritise later
Projects
None yet
Development

No branches or pull requests

2 participants