From de6e78e1f6a3fa620bf477c3bd2dba309de77de2 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 7 Dec 2015 08:21:50 +0200 Subject: [PATCH] Bluetooth: samples/beacon: Use NRPA for advertising Change-Id: I9c9c8ab5b18bdd0e035944718405cfec9a164c13 Signed-off-by: Johan Hedberg --- samples/bluetooth/beacon/src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/samples/bluetooth/beacon/src/main.c b/samples/bluetooth/beacon/src/main.c index 1dae065f073..1c8ad1e72ea 100644 --- a/samples/bluetooth/beacon/src/main.c +++ b/samples/bluetooth/beacon/src/main.c @@ -67,7 +67,11 @@ void main(void) printk("Bluetooth initialized\n"); /* Start advertising */ - err = bt_le_adv_start(BT_LE_ADV(BT_LE_ADV_SCAN_IND), ad, sd); + err = bt_le_adv_start(BT_LE_ADV_PARAM(BT_LE_ADV_SCAN_IND, + BT_LE_ADV_ADDR_NRPA, + BT_GAP_ADV_FAST_INT_MIN_2, + BT_GAP_ADV_FAST_INT_MAX_2), + ad, sd); if (err) { printk("Advertising failed to start (err %d)\n", err); return;