Bluetooth: samples/beacon: Use NRPA for advertising

Change-Id: I9c9c8ab5b18bdd0e035944718405cfec9a164c13
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2015-12-07 08:21:50 +02:00 committed by Anas Nashif
parent 4087728345
commit de6e78e1f6

View File

@ -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;