Skip to content

Commit 7d83155

Browse files
Thalleykartben
authored andcommitted
Bluetooth: Host: Add note about recycled for BT_LE_ADV_OPT_CONN
When a connectable advertising set is stopped, the preallocated connection object is free by calling bt_conn_unref which triggers a call to the recycled callback. Signed-off-by: Emil Gydesen <[email protected]>
1 parent f068402 commit 7d83155

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/zephyr/bluetooth/bluetooth.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ enum bt_le_adv_opt {
756756
*
757757
* Starting connectable advertising preallocates a connection
758758
* object. If this fails, the API returns @c -ENOMEM.
759+
* Stopping connectable advertising will free the connection object,
760+
* and will trigger a call to @ref bt_conn_cb.recycled.
759761
*
760762
* The advertising set stops immediately after it creates a
761763
* connection. This happens automatically in the controller.

0 commit comments

Comments
 (0)