Skip to content

bluetooth: Resume peripheral's advertising after disconnection when using new bt_le_ext_adv_* API #31086

@lukasbrchl

Description

@lukasbrchl

Hello,
There was a feature in Bluetooth legacy API bt_le_adv_* that when advertising connectable advertisements and central connects to peripheral, the advertisements get paused. When central disconnects, the advertisements get again resumed. This was a convenient feature because one doesn't need to rely on the disconnect callback to resume the advertisements manually.

However, in the new Bluetooth API bt_le_ext_adv_*, the functionality for resuming the advertisements is not implemented. There is an option BT_LE_ADV_OPT_ONE_TIME which indicates "If Advertising directed or the advertiser was started with bt_le_ext_adv_start then this behavior is the default behavior and this flag has no effect.". I would suggest disabling this default behavior or add an option that will allow automatically to resume while using bt_le_ext_adv_*

What are your thoughts about this?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions