-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Bluetooth: Add BT_LE_ADV_CONN_ONE_TIME
#72881
Bluetooth: Add BT_LE_ADV_CONN_ONE_TIME
#72881
Conversation
The adv auto resume feature is planned for deprecation. This new define is the new default applications should use. Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the auto-resume being removed in the future, wouldn't this also remove the BT_LE_ADV_OPT_ONE_TIME
macro as well?
In which case the implementation and definition of BT_LE_ADV_CONN_ONE_TIME
will become redundant?
If you ignore the names, and look at the semantics, then it's I'm open to suggestions for a different path, though. If we decide to silently alter meaning of It's of course possible to replace the uses of |
Removing |
We were actually discussing deprecation in general w/ @alwa-nordic today:
In our case, Aleks is doing 1. in this PR, and will do 2. as soon as it's merged. Applications still have the chance to migrate for two releases. The naming could be better ("single-shot" maybe?). What it's got going for it is that it keeps the same terminology as the All these words to say that I support this PR :) |
The adv auto resume feature is planned for deprecation. This new define is the new default applications should use.
Once this is in, I will post a series of PRs to switch all in-tree users over to this.