Skip to content

Commit 7eabf1c

Browse files
andrzej-kaczmarekcarlescufi
authored andcommitted
Bluetooth: host: Add adv parameters def for connectable ext adv
This is the same as for legacy, but with ext adv flag. Signed-off-by: Andrzej Kaczmarek <[email protected]>
1 parent e5ffc18 commit 7eabf1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/bluetooth/bluetooth.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,14 @@ struct bt_le_per_adv_param {
709709
BT_GAP_ADV_FAST_INT_MAX_2, \
710710
NULL)
711711

712+
/** Connectable extended advertising with @ref BT_LE_ADV_OPT_USE_NAME */
713+
#define BT_LE_EXT_ADV_CONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
714+
BT_LE_ADV_OPT_CONNECTABLE | \
715+
BT_LE_ADV_OPT_USE_NAME, \
716+
BT_GAP_ADV_FAST_INT_MIN_2, \
717+
BT_GAP_ADV_FAST_INT_MAX_2, \
718+
NULL)
719+
712720
/** Non-connectable extended advertising with private address */
713721
#define BT_LE_EXT_ADV_NCONN BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, \
714722
BT_GAP_ADV_FAST_INT_MIN_2, \

0 commit comments

Comments
 (0)