Skip to content

Conversation

@knyar
Copy link

@knyar knyar commented Dec 15, 2025

Some devices only show the pairing passkey after the pairing process has started. Such cases might require passkey to be provided by the user interactively. To support that, allow AuthData to specify a function callback which will be used to populate the passkey.

For context, here's an example of how I am using it: https://github.com/knyar/aranet4-prom-collector/blob/20762fb897951807bfb6d6c2c7e976750b055a8c/main.go#L320-L359

I am happy to update one of the examples (e.g. basic/smp/main.go) to use this and prompt for passkey interactively if passkey flag has not been provided.

Some devices only show the pairing passkey after the pairing process has
started. Such cases might require passkey to be provided by the user
interactively. To support that, allow AuthData to specify a function
callback which will be used to populate the passkey.
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.

1 participant